How to Update Python on Mac – Python is a common programming language commonly used by both novices and long-time developers. Current models of Mac OS come with Python 2.7.x enabled (or Python 2.6.1 if an earlier version of Mac OS X is enabled), although other Python users will choose to upgrade Python to a later version such as Python 3.8.x or later.
This article would explore how to get an improved version of Python 3 on Mac by discussing two separate ways to install Python 3 quickly and easily on a Computer.
Notice why we said install Python 3, not upgrade to Python 3, as the way that operates is updating Python 3 when keeping Python 2 on the Mac concurrently.
How to Update Python on Mac – How To Install Python on Mac
This is important since certain Mac applications evidently depend on Python 2 support, and if you seek to update Python 2.x to Python 3.x in Mac OS, you will inevitably notice anything is wrong, even desperately. Having this in mind you shouldn’t attempt to upgrade the latest pre-installed Python release on a Mac, then you’ll only get a complete support Python3 co-install.
How to Install the Updated Python 3 in Mac OS
The best way to update Python 3 is maybe by utilizing the python.org module installer.
Go to the download page here for Python.org, and access the new Python installer kit.
Run the Python kit, then install Python 3 on the Mac.
Installing Python 3 on Mac OS
Configuration of Python 3.8.x includes about 100 MB of disk space. Installation is quick, and on the Mac, you will have Python 3.x alongside Python 2.x.
If you have enabled Python 3 you can notice a Python3 folder inside your Mac’s /Applications directory. You can also notice the easy IDE called IDLE in the directory /Applications / MacPython3/, which essentially offers you the same Python IDE you’d experience if you run’ python3’ at the Terminal command prompt.
You can even run Python 3.x via Homebrew on a Laptop, which is my favorite form as a homebrew consumer.
How to Install Python 3.8 with Homebrew
Installing a revised edition of Python 3.8 (as of writing time) with Homebrew is super fast. Of course, until you can use the Homebrew system you would need Homebrew enabled on the Desktop, however, if you’re involved in playing about with Python then Homebrew would definitely cater to you anyway.
If you don’t know how to run Homebrew on Mac OS, we’ll assume you already have Homebrew.
If you’re downloading the modified Python 3 with the software installer or Homebrew, the original build of Python 2.7 that comes preinstalled for Mac OS and Mac OS X should always be loaded, totally unchanged, and will operate as normal with the easy “python” command.
How to Check What Version of Python is Currently Installed in Mac OS
Simply typing in the following command from the Terminal program should show what edition of Python is currently enabled:
In macOS, you can consider that in any variety usually Python 2.7.x, like 2.7.4 or 2.7.10 or the same.
After downloading Python with Homebrew or with the Software Installer, you can test Python’s latest new version with:
In this way, you can update python on Mac.