Skip to content

Instantly share code, notes, and snippets.

@pavank
Created June 24, 2019 10:57
Show Gist options
  • Save pavank/428da71763d45c3a0fd2bb53976f43cb to your computer and use it in GitHub Desktop.
Save pavank/428da71763d45c3a0fd2bb53976f43cb to your computer and use it in GitHub Desktop.
Manage various Python versions in Ubuntu
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