Python Forum
Update Python 2.7 in place
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Update Python 2.7 in place
#3
Use pyenv,my tutorial.
It's make really simple to change versions,
and safe to don't mess at all with default OS Python versions.
mint@mint ~ $ pyenv install 2.7.14
Downloading Python-2.7.14.tar.xz...
-> https://www.python.org/ftp/python/2.7.14/Python-2.7.14.tar.xz
Installing Python-2.7.14...
Installed Python-2.7.14 to /home/mint/.pyenv/versions/2.7.14

# Make it default version,set both python and pip from command line to 2.7.14
mint@mint ~ $ pyenv global 2.7.14
So what you should use is Python 3.6.
Downloading Python-3.6.4.tar.xz...
-> https://www.python.org/ftp/python/3.6.4/Python-3.6.4.tar.xz
Installing Python-3.6.4...
Installed Python-3.6.4 to /home/mint/.pyenv/versions/3.6.4

# Make it default version,set both python and pip from command line to 3.6.4
mint@mint ~ $ pyenv global 3.6.4
Going back to OS default Python is simple to.
mint@mint ~ $ pyenv local system
mint@mint ~ $ python
Python 2.7.12 (default, Nov 19 2016, 06:48:10) 
[GCC 5.4.0 20160609] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> 
mint@mint ~ $ python3
Python 3.5.2 (default, Nov 17 2016, 17:05:23) 
[GCC 5.4.0 20160609] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>>
Reply


Messages In This Thread
Update Python 2.7 in place - by mathog - Jan-22-2018, 06:16 PM
RE: Update Python 2.7 in place - by Gribouillis - Jan-22-2018, 06:39 PM
RE: Update Python 2.7 in place - by mathog - Jan-22-2018, 08:32 PM
RE: Update Python 2.7 in place - by snippsat - Jan-22-2018, 07:26 PM
RE: Update Python 2.7 in place - by snippsat - Jan-22-2018, 09:25 PM
RE: Update Python 2.7 in place - by Gribouillis - Jan-22-2018, 09:38 PM
RE: Update Python 2.7 in place - by snippsat - Jan-22-2018, 10:11 PM

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020