There is a known issue with version 3.7 of Anaconda Python and certain versions of the Mac OSX operating system. We strongly recommend that you use python 3.6 on OSX to avoid any problems. To install python 3.6, please follow the steps below:
To get started you need to download the OSX miniconda installer.
Click on the link https: https://repo.continuum.io/miniconda/Miniconda3-4.5.4-MacOSX-x86_64.sh to download the Python 3.6 installer.
Wait for it to download. It will place a file called Miniconda3-4.5.4-MacOSX-x86_64.sh in your downloads folder. On my computer using Safari this is ~/Downloads
Open a Terminal window. If you don’t know how to do this click * Applications -> Utilities -> Terminal*
Within the Terminal change directories into the folder where your downloaded file lives, i.e.
Now run the bash “shell” program to install Miniconda
Scroll through the license (press the space bar to move through quickly), type ‘yes’ to approve the terms, and then accept all the installation defaults.
Close the Terminal program. Then, restart it.
Within the Terminal type:
Enter y at the Proceed prompt.
When the installation completes, close the Terminal window.
The second half of the installation is the Spyder IDE development environment. This is the software that you use to write, edit and test your Python programs. Spyder IDE calls Python to actually run the program. Spyder is included by default in the Anaconda Python distribution, which comes with everything you need to get started in an all-in-one package.
There is a known issue with version 3.7 of Anaconda Python and certain versions of the Mac OSX operating system. We strongly recommend that you use python 3.6 on OSX to avoid any problems. To install python 3.6, please follow the steps below: To get started you need to download the OSX miniconda installer. Python is a widely-used general-purpose, high-level programming language. This article will serve as a complete tutorial on How to download and install Python latest version on macOS / Mac OS X. Like Linux, macOS also comes with Python pre-installed on the system. It might be Python version 2 or some similar outdated version.
However, with Miniconda, we have to download and install Spyder IDE.
Go to the Terminal window.
Type the following command:
This will take some time to download.
When the following prompt appears:
Type y, and hit enter.
Once the download is finished, type the following command to know the location of Spyder:
It is usually installed in the bin folder within miniconda3
To start Spyder, go to a terminal window and enter
You are running 64-bit Mac OS X.
Technically, all Apple computers purchased since Q4 2006 have been equipped with 64-bit capable processors. The Mac OS X operating system has supported 64-bit by default since OS X 10.6 Snow Leopard, released in 2009. The upgrade to the latest operating system for your computer is available for free, directly from Apple, since the release of OS X 10.9 Mavericks in 2013.
Python programming language is one of the most used programming language these days. Many Mac and even Windows users are using the programming language for various purposes. The python language has its own IDE to write programs and if you are already coding in python then you must know that python codes are saved in .py format. But many Mac users face the issue of updating python or don’t even know about the latest version of python.
So, if you are one of them and want to update or python or just install the python in your Mac device then follow the methods that I would write in this article.
Contents
To check which version of Python you have installed in your Macbook, you need to type a single line code in your terminal. So, let me guide you on you can do that:
python --version
and press the Enter key.But, if that command doesn’t work for you then you may trypython3 --version
and then press the Enter key. If this command works then you already have the python version 3 installed. But still, if you have a version lower then 37.4 then you can follow the methods below and get the latest version installed.
So, there are various methods using which python can be installed and not updated. I will tell you why not updated, because there are many apps in Mac still running on python 2 and not Python 3. Also, installing python 3 won’t remove python 2 and all your apps would work fine with it. That’s why you can follow the below methods to install python 3.
The latest version of python is installed in your Mac and now you can use it for whatever programming needs you have.
The HomeBrew is a package manager required in Mac or other Linux based OS to install other applications on Mac. So, we will be using HomeBrew to install the latest version of python on your Mac pc but you need to have installed HomeBrew on your Mac already. If you do not have it installed then you would have to follow the method below to install HomeBrew first, we will be installing HomeBrew using XCode. So, let’s begin with installing XCode first and then HomeBrew using the below mentioned commands:
xcode-select --install
and press the Enter key./usr/bin/ruby -e '$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)'
and press Enter.brew doctor
and press Enter.Your system is ready to brew.
then you have installed HomeBrew successfully.$ brew install python3
and wait till the installation is complete.So, you have successfully installed XCode, HomeBrew & Python3 finally and now you can use python for all your programming needs. Also, if you have an interest in making apps for iOS then you may use XCode for that.
Since python3 is installed already on your Mac, though if you feel like checking and confirming the installation or check the version then you may refer the How to check the python version? section above. Or just simply enter the command $ python3 --version
in the terminal and you would know.
Now, if you have previously installed the older version of python like python2 and now you have installed python3 using this article, let me tell you that you can run both the python on your Mac device now. So, previously while running or opening python2 you might have to enter a command. The same command would help you with running python3 too.
Python is one of the newest and growing programming language used in many fields for various applications. Likewise, it is used on Mac for various applications and the latest version of python launched for Mac till date is python 3 or python version 3.7.4. The article shares with you 2 methods to update python on Mac to its latest version. Also, it teaches you about a command that can help you check the version of python installed. I hope all of this helps you with installing the latest version of python. Though, if you have any queries don’t hesitate to ask it by commenting below.