Anaconda site-packages

Nyxynyx picture Nyxynyx · Jun 23, 2015 · Viewed 114.2k times · Source

After installing a package in an anaconda environment, I'll like to make some changes to the code in that package.

Where can I find the site-packages directory containing the installed packages? I do not find a directory /Users/username/anaconda/lib/python2.7/site-packages

Answer

Arcturus B picture Arcturus B · Jun 23, 2015

You can import the module and check the module.__file__ string. It contains the path to the associated source file.

Alternatively, you can read the File tag in the the module documentation, which can be accessed using help(module), or module? in IPython.