site-packages
The folder where pip installs third-party packages for a particular Python or virtual environment.
In more detail
Each interpreter and each virtual environment has its own, which is why a package installed for one Python is missing in another. python -m site and pip show name reveal where it is.
Example
python -m siteRelated terms
- lib folder — The folder inside a Python installation or virtual environment that holds library code, including the site-packages folder where installed packages go.
- pip — Python's standard package installer, which downloads packages from the Python Package Index and installs them.
- module search path — The list of folders Python searches, in order, when a program imports a module.
Taught in
- Where Python Lives: PATH And Versions — Hands-on Python: Complete Video Course & Book
- Modules And The Import System — Hands-on Python: Complete Video Course & Book
- Virtual Environments — Hands-on Python: Complete Video Course & Book
- pip, requirements, and installing packages — Hands-on Python: Complete Video Course & Book