Python Forum
many versions on python on linux
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
many versions on python on linux
#7
Use pyenv,which make it easy to install and change between versions.
I have a tutorial here.

Example run:
mint@mint ~ $ pyenv install 3.6.2
Downloading Python-3.6.2.tar.xz...
-> https://www.python.org/ftp/python/3.6.2/Python-3.6.2.tar.xz
Installing Python-3.6.2...
Installed Python-3.6.2 to /home/mint/.pyenv/versions/3.6.2
 

# Make python and pip default to 3.6.2 or what version want to use
mint@mint ~ $ pyenv global 3.6.2
 
# Check what's available
mint@mint ~ $ pyenv install --list 
# here will list all version available from 2 to 3,Anaconda,PyPy...ect.
 
# Install the version you desire
mint@mint ~ $ pyenv install anaconda-x.x.x
 
# If just want test out Anaconda is a shell session.
pyenv shell anaconda-x.x.x
 
# It's safe don't mess with OS python 
# Can always go back to system default
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
many versions on python on linux - by Skaperen - Oct-16-2017, 03:12 AM
RE: many versions on python on linux - by wavic - Oct-16-2017, 03:37 AM
RE: many versions on python on linux - by Skaperen - Oct-16-2017, 08:11 AM
RE: many versions on python on linux - by sjdv1982 - Oct-16-2017, 09:22 AM
RE: many versions on python on linux - by wavic - Oct-16-2017, 11:09 AM
RE: many versions on python on linux - by metulburr - Oct-16-2017, 11:25 AM
RE: many versions on python on linux - by snippsat - Oct-16-2017, 11:29 AM
RE: many versions on python on linux - by DeaD_EyE - Oct-16-2017, 12:12 PM
RE: many versions on python on linux - by Skaperen - Oct-17-2017, 02:22 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Python on Linux ebn852_pan 8 807 Jun-17-2024, 11:19 AM
Last Post: Larz60+
  Pandas + PIL on Linux (Python 32) Clives 3 2,391 Mar-25-2022, 07:46 PM
Last Post: snippsat
  Python App On Different Versions Harshil 3 2,479 Aug-25-2020, 04:14 PM
Last Post: snippsat
  multiple versions of Python Skaperen 6 3,127 Jun-13-2019, 12:32 AM
Last Post: Skaperen
  compiling various versions of Python, which toolchain? Skaperen 4 2,872 Jun-06-2019, 06:28 AM
Last Post: Skaperen
  running other older versions of python Skaperen 20 10,450 Mar-03-2018, 02:23 AM
Last Post: Skaperen
  how to install python on linux manchun 5 4,755 Mar-01-2018, 09:09 AM
Last Post: wavic
  Which is best for python?Linux or windows? PySoD 21 33,746 Jun-19-2017, 04:52 PM
Last Post: Ofnuts

Forum Jump:

User Panel Messages

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