Skip to content

Instantly share code, notes, and snippets.

@chaityacshah
Last active June 11, 2018 13:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save chaityacshah/8b390be98015a719f8f10bd351c2923b to your computer and use it in GitHub Desktop.
Save chaityacshah/8b390be98015a719f8f10bd351c2923b to your computer and use it in GitHub Desktop.
Python and Mac!

Python packages are installed in /Library/Python/2.7/site-packages by default.
To find the path programmatically,

from distutils.sysconfig import get_python_lib
print(get_python_lib())

Output:

/opt/anaconda/anaconda/lib/python3.5/site-packages

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment