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
conda-develop ~/anaconda2/envs/[my_env]/site-packages.
Navigate to the Environments page. In the dropdown to the left of Channels, select All to search all packages on anaconda.org. In the Search Packages box, type the name of the package you want to search for on anaconda.org.
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.
Run this inside python shell:
from distutils.sysconfig import get_python_lib print(get_python_lib())
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With