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
I installed miniconda and found all the installed packages in /miniconda3/pkgs
You could also type 'conda list' in a command line. This will print out the installed modules with the version numbers. The path within your file structure will be printed at the top of this list.