Skip to content

Instantly share code, notes, and snippets.

@Kyungpyo-Kim
Created May 18, 2018 10:21
Show Gist options
  • Save Kyungpyo-Kim/740a9d51f8318da9eb01bcd9fa673d76 to your computer and use it in GitHub Desktop.
Save Kyungpyo-Kim/740a9d51f8318da9eb01bcd9fa673d76 to your computer and use it in GitHub Desktop.
Python version change in Ubuntu

Python version change in Ubuntu

Reference

Change python version system-wide

update-alternatives --list python
/usr/bin/python2.7
/usr/bin/python3.4
sudo update-alternatives --config python
There are 2 choices for the alternative python (providing /usr/bin/python).

  Selection    Path              Priority   Status
------------------------------------------------------------
  0            /usr/bin/python2   2         auto mode
  1            /usr/bin/python2   2         manual mode
* 2            /usr/bin/python3   1         manual mode

Press <enter> to keep the current choice[*], or type selection number: 0
update-alternatives: using /usr/bin/python2 to provide /usr/bin/python (python) in auto mode

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment