How to Install Python 3 on macOS High Sierra

Tadashi Shigeoka ·  Tue, August 28, 2018

I’ll introduce how to install Python 3 on macOS High Sierra.

Python | パイソン

Prerequisites: Install Homebrew

If you haven’t installed Homebrew yet, please first refer to the article [Mac] Install Homebrew (and Git while we’re at it) and install it.

Install Python3

brew install python3

Just running this command will complete the Python 3 installation.

Check python3 and pip3 versions

$ python3 --version           
Python 3.7.0
$ pip3 --version
pip 18.0 from /usr/local/lib/python3.7/site-packages/pip (python 3.7)

Check python3 and pip3 PATH

$ which python3
/usr/local/bin/python3

$ ls -l /usr/local/bin/python3
lrwxr-xr-x  1 your_user  admin  34  8 13 15:00 /usr/local/bin/python3 -> ../Cellar/python/3.7.0/bin/python3
$ which pip3   
/usr/local/bin/pip3

$ ls -l /usr/local/bin/pip3   
lrwxr-xr-x  1 your_user  admin  31  8 13 15:00 /usr/local/bin/pip3 -> ../Cellar/python/3.7.0/bin/pip3

That’s all about installing Python 3 on macOS High Sierra from the Gemba.