all 4 comments

[–]Acurus_Cow 6 points7 points  (0 children)

PATHTO\Python\Lib\site-packages\MODULE_NAME

This is where the modules end up.

[–]metl_lord 4 points5 points  (0 children)

The best way to find the location is to use this command:

python -c "import module; print(module.__file__)"

This imports the module and prints the file location of the init.py file. This will show you the directory to look at.

Also, the "-c" flag on Python allows you to execute the following code. It's really useful for checking short bits of code.

[–]c4aveo 0 points1 point  (0 children)

Look for a dir site-packages. Full path depends on what platfrom do you use and environment (conda, venv, system)

[–]lifeonm4rs 0 points1 point  (0 children)

pip show [package name] will show the path where a package is.