Where does PIP Store / Save Python 3 Modules / Packages on Windows 8?
Question:
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.
for python 3.X default location C:Usersusername AppDataLocalProgramsPythonPython36Libsite-packages
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
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.
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.
for python 3.X default location C:Usersusername AppDataLocalProgramsPythonPython36Libsite-packages
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
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.