After installing a package in an Conda environment, I'd like to make some changes to the code in that package.
Where can I find the site-packages
directory containing the installed packages?
I have an Anaconda Python 2.7 base distribution, but I do not find a directory:
/Users/username/anaconda/lib/python2.7/site-packages
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 usinghelp(module)
, ormodule?
in IPython.