Types of Python Installation

There are at least 3 types of Python installations on Mac OS X. There are:

  1. System Python: the Python pre-installed in Mac OS X since Mac OS X 10.8.
  2. Mac Python: the Python could be installed from the package download from .
  3. Homebrew Python: the Python could be installed through Homebrew.

Identifying the Type of Python Installation

An easy way to identify which type of Python you are running is to check the path of the directory which stores the packages.

Notes: this way is verified on Mac OS X 10.10, and with Python 2.7.

Run this in the console to get the paths:

python -c "import sys; print '\n'.join(sys.path)"

From on one in the result, you can see which type of Python installation by the searching it in this table:

Type Line Notes
System Python /System/Library/Frameworks/Python.framework/Versions/2.7/lib/
Mac Python /Library/Frameworks/Python.framework/Versions/2.7/lib/
Homebrew Python /usr/local/Cellar/python/2.7.9/Frameworks/Python.framework/Versions/2.7/lib/ the "2.7.9" is the Python version.

See also

Last modified 4 years ago Last modified on May 3, 2015, 1:55:51 AM