Jul-26-2018, 08:31 PM
I went to Python's main website and I downloaded the correct Python 3.7.0 files for my system, and I just set up and updated pip, and imported certifi, but when I checked what version of Python my system was running, it said Python 2.7. How do I get my system to actually use the new version of Python?
Thanks!
Jul-26-2018, 09:16 PM (This post was last modified: Jul-26-2018, 09:16 PM by perfringo.)
Default meaning of Python on the command-line may not be clear. Python is usually an alias for python2.7 (but it can sometimes be an alias for older versions like python2.6 or python2.5). To find out exactly which version of Python you're using, you can use the --version flag.
$ python --version
Python 3 is usually available under the name of python3.
$ python3 --version
To use version 3.7:
$ python3.7
Your system, i.e. macOS will not use 3.7, furthermore (Documentation >>> Python Setup and Usage >>> Using Python on Macintosh):
Quote:The Apple-provided build of Python is installed in /System/Library/Frameworks/Python.framework and /usr/bin/python, respectively. You should never modify or delete these, as they are Apple-controlled and are used by Apple- or third-party software. Remember that if you choose to install a newer Python version from python.org, you will have two different but functional Python installations on your computer, so it will be important that your paths and usages are consistent with what you want to do.
I'm not 'in'-sane. Indeed, I am so far 'out' of sane that you appear a tiny blip on the distant coast of sanity.Bucky Katt, Get Fuzzy
Da Bishop: There's a dead bishop on the landing. I don't know who keeps bringing them in here. ....but society is to blame.
Jul-26-2018, 09:30 PM (This post was last modified: Jul-26-2018, 09:30 PM by snippsat.)
Doing it Right Mac
Alternative pyenv(Simple Python Version Management) also work on Mac.
Example how it look on Linux:
So now do python and pip always point to what you set global in this case 3.7.
  1. Python Upgrade Mac
  2. Upgrade Python Mac To 3.7
  3. Upgrade Python Mac Command Line
Mac python upgrade to 3.9

Python Upgrade Mac

Here are different methods to Update Python on your Mac One can install Python without using the terminal on MacBook Air or Mac. For this, you need to download the Python installer from the python.org website. Follow the steps below. Both python 2x and 3x can stay installed in a MAC. Mac comes with python 2x version. To check the default python version in your MAC, open the terminal and type-python -version However to check, if you have already installed any of python 3x versions, you need to type. Python3 -version If you don't then go ahead and install it with the installer. How to use Xcode IDE for Python development. Open Xcode and start with creating a new project: From the templates, choose Cross-platform External Build System Give it a name. You can update Organizatin Name and Identifier if you want. Make sure you enter a correct path for Python bin. For Python 3.x it's usually /usr/bin/pythonw.


Upgrade Python Mac To 3.7

Possibly Related Threads…
ThreadAuthorRepliesViewsLast Post
Query on choosing Python 3.8.6 versionsureshnagarajan0183Feb-16-2021, 05:30 AM
Last Post: sureshnagarajan
Which Python Version?muzikman15657Jan-19-2021, 02:16 PM
Last Post: muzikman
Python/winrt support for python 3.8 versionpbvinoth2704Jul-08-2020, 02:03 PM
Last Post: snippsat
Issue with 2 version of python (2.6.6 and 2.7) with piphimupant942813Apr-24-2020, 03:23 AM
Last Post: himupant94
How to install the latest version of Python on RHEL 8?devlocalca72,053Feb-17-2020, 01:49 AM
Last Post: snippsat
Any command to upgrade Python version 2.X to latestKarthiK71,473Feb-15-2020, 07:25 PM
Last Post: DeaD_EyE
Default python version on Windows (3.6.x vs 3.6.y)gramakri1933May-04-2019, 10:36 PM
Last Post: snippsat
Old Python-version used by IDLEGeNoS71,337Apr-13-2019, 08:04 PM
Last Post: Gribouillis
Trouble installing a old version of python - 3.4.1alex8obrien2936Apr-09-2019, 06:28 AM
Last Post: alex8obrien
a special version of the python commandSkaperen61,361Apr-06-2019, 02:25 PM
Last Post: Gribouillis
Users browsing this thread: 1 Guest(s)

Upgrade Python Mac Command Line