How to Install Python 3 on Mac OS X

Amir Ghahrai

Amir Ghahrai

Follow on Twitter

In this post we’ll provide instructions on how to install Python3 on Mac OS X with brew.

Install Python3 on Mac OS X Using brew

Assuming you already have brew installed on your Mac, first run:

brew doctor


brew install python3

If you encounter an error message related to link and Frameworks such as:

Error: An unexpected error occurred during the `brew link` step
The formula built, but is not symlinked into /usr/local
Permission denied @ dir_s_mkdir - /usr/local/Frameworks
Error: Permission denied @ dir_s_mkdir - /usr/local/Frameworks

then you need to run the following commands to resolve the error:

sudo chown -R $(whoami) $(brew --prefix)/*
note the $(brew --prefix)/*
sudo install -d -o $(whoami) -g admin /usr/local/Frameworks