TSK
TSK

Reputation: 37

Changing python3 to python2.7 as the default python

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

Answers (1)

jpf
jpf

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

Related Questions