Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Python version on Linux
#2
Linux mint18 has bot 2.7 and 3.5 versions.
python2 is the system version (i.e. the one linux rely on for its tools
If you want to use python3 use python3 command, or python3.5 not python.

Note that newest version is 3.8, so if you want to install - install 3.8/
in this case python will point to python2, python3 and python3.5 will point to 3.5 and python3.8 will point to newly installed 3.8
You can use pyenv to manage different installations.
also it's a good idea to work in virtual environments, so that system install is clean. You will need to install different 3-rd party packages and don't want to clutter the system versions.

Look at https://python-forum.io/Thread-Part-1-Li...nvironment
and also - https://python-forum.io/Thread-pyenv-Sim...Management
https://docs.python.org/3/library/venv.html
If you can't explain it to a six year old, you don't understand it yourself, Albert Einstein
How to Ask Questions The Smart Way: link and another link
Create MCV example
Debug small programs

Reply


Messages In This Thread
Python version on Linux - by whois1230 - Apr-09-2020, 01:07 PM
RE: Python version on Linux - by buran - Apr-09-2020, 01:22 PM
RE: Python version on Linux - by whois1230 - Apr-10-2020, 06:54 PM
RE: Python version on Linux - by buran - Apr-10-2020, 06:57 PM
RE: Python version on Linux - by whois1230 - Apr-10-2020, 07:01 PM
RE: Python version on Linux - by buran - Apr-10-2020, 07:12 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  run part of a script with a different version of Python jdog 3 632 May-27-2024, 01:57 AM
Last Post: Alice12
  Is possible to run the python command to call python script on linux? cuten222 6 932 Jan-30-2024, 09:05 PM
Last Post: DeaD_EyE
  How to find out from outside Python (in Windows) the current version of Python? pstein 4 861 Oct-04-2023, 10:01 AM
Last Post: snippsat
  How to resolve version conflicts in Python? taeefnajib 0 1,017 Apr-27-2023, 08:37 PM
Last Post: taeefnajib
  Python venv and PIP version issue JanOlvegg 2 1,403 Feb-22-2023, 02:22 AM
Last Post: JanOlvegg
  Python Version upgrade nitinkukreja 1 983 Feb-04-2023, 10:27 PM
Last Post: Larz60+
  Can't update new python version on Pycharm GOKUUUU 6 4,065 Jul-23-2022, 09:24 PM
Last Post: GOKUUUU
  How to use a variable in linux command in python code? ilknurg 2 1,677 Mar-14-2022, 07:21 AM
Last Post: ndc85430
  Building python (3.9.5) with different libexpat version (2.4.6) raghupcr 0 1,380 Feb-25-2022, 11:29 AM
Last Post: raghupcr
  Python keeps running the old version of the code quest 2 3,952 Jan-20-2022, 07:34 AM
Last Post: ThiefOfTime

Forum Jump:

User Panel Messages

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