Reputation: 37
currently, my default python version is 3.8, but my company want me to use python2.7. So, I need to change the default version of python to 2.7. But when I was searching about changing default version of python, most of the results were about change from python2.7 to python3. Is there anyone know how to change the version of python from 3.8 to 2.7?
For more information: when I run which python
, it returns/Users/taesankim/opt/anaconda3/bin/python
And when I run which python2.7
, it returns /usr/bin/python2.7
Please let me know if I missed something or I need to add more information.
Thank you.
Upvotes: 1
Views: 1226
Reputation: 1475
You could create a symbolic link to /usr/bin/python2.7
with
ln -s /usr/bin/python2.7 /usr/bin/python
Then confirm which
now refers to new link.
You might have to start a new console before confirming with which
.
Upvotes: 1