Where does PIP Store / Save Python 3 Modules / Packages on Windows 8?

Question:

I have looked everywhere and can’t find where the packages are installed.

Further, are the packages from , modules, libraries or just packages in terminology?

Asked By: Startec

||

Answers:

From the docs

Python usually stores its library (and thereby your site-packages folder) in the installation directory. So, if you had installed Python to C:Python, the default library would reside in C:PythonLib and third-party modules should be stored in C:PythonLibsite-packages.

Answered By: Startec

for python 3.X default location C:Usersusername AppDataLocalProgramsPythonPython36Libsite-packages

Answered By: MD5

Use this command to list global packages with their locations:

pip list -v

# output example (windows 10):
# Package                   Version   Location                                                         Installer
# ------------------------- --------- ---------------------------------------------------------------- ---------
# adal                      0.4.5     c:userstestappdataroamingpythonpython36site-packages      pip
# aiocache                  0.10.0    c:program filespython36libsite-packages                      pip

When using virtual environment the local packages is located in project folder:

<project folder>venvLibsite-packages
Answered By: vladimir

It depends on how/where your python was installed.

For example:

  • if you are using Conda for your python, you will most likely find your packages in the default location of:
c:users<username>miniconda3libsite-packages
  • Whereas, if you installed Python3.8 as a stand-alone, you will find it under:
C:Users<username>AppDataRoamingPythonPython38site-packages

where if you install a simply pip package (that did not use any specific locations), and just having some scripts, it will end up in:

C:Python38Scripts

Noting that if the script depend on libraries, it will probably not work, as they will not be found from this location, if installed on Windows, and not taking this into account.

  • Or if you used Cygwin, they’ll end up in one of:
/usr/lib/python3.8/site-packages      
/usr/local/lib/python3.8/site-packages

Again, you best bet is to check with:

pip -V
pip list -v

There is also a pip package called pip-date that contain a utility called pipbyday that will show you the location of each package and the installation time.

Answered By: not2qubit
Categories: questions Tags: ,
Answers are sorted by their score. The answer accepted by the question owner as the best is marked with
at the top-right corner.