Intellipaat Back

Explore Courses Blog Tutorials Interview Questions
0 votes
in Python by (16.4k points)

I have a Python 3.6.8 in/usr/local/bin/Python3 and a Python 3.7.6 in/usr/local/bin/Python3.7 on my Macbook (moreover, there is Mac default Python2, which I would prefer not to transform it). 

After a check, which python3 or python3 - version I can see the current default version is Python 3.6.8. I'd prefer to set the default Python3 to Python 3.7.6. How might I do that?

1 Answer

0 votes
by (26.4k points)

You can utilize the "ln" command to make a representative link (symlink) to the current record as: 

ln -s -f /usr/local/bin/Python3.7 /usr/local/bin/python

To be certain you can close your terminal and afterward open it again to check the progressions default version as in the past.

python3 --version

Looking for a good python tutorial course? Join the python certification course and get certified.

Related questions

Browse Categories