Created
June 24, 2019 10:57
-
-
Save pavank/428da71763d45c3a0fd2bb53976f43cb to your computer and use it in GitHub Desktop.
Manage various Python versions in Ubuntu
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Python Configuration | |
====================== | |
Find all versions : ls -ls /usr/bin/python* | |
Manage Active Version | |
========================== | |
Ref: http://web.mit.edu/6.00/www/handouts/pybuntu.html | |
sudo update-alternatives --install /usr/bin/python python /usr/bin/python2.7 1 | |
sudo update-alternatives --install /usr/bin/python python /usr/bin/python3.6 2 | |
sudo update-alternatives --install /usr/bin/python python /usr/bin/python3.7 3 | |
sudo update-alternatives --config python |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment