Anaconda 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 using help(module)
, or module?
in IPython.
Run this inside python shell:
from distutils.sysconfig import get_python_lib
print(get_python_lib())
Linux users can find the locations of all the installed packages like this:
pip list | xargs -exec pip show