lib folder
The folder inside a Python installation or virtual environment that holds library code, including the site-packages folder where installed packages go.
In more detail
In a virtual environment it lives at .venv/lib/python3.14/site-packages on macOS and Linux, or .venv\Lib\site-packages on Windows. You rarely need to look inside it, but knowing where installed packages live explains why each environment has its own set.
Related terms
- site-packages — The folder where pip installs third-party packages for a particular Python or virtual environment.
- virtual environment — A self-contained folder with its own Python and its own installed packages, so each project's packages stay separate.
Taught in
- Where Python Lives: PATH And Versions — Hands-on Python: Complete Video Course & Book
- Your Python Folder And A First Program — Hands-on Python: Complete Video Course & Book
- A Sample Program, Explained — Hands-on Python: Complete Video Course & Book
- Dictionaries And String Formatting — Hands-on Python: Complete Video Course & Book
- Mad Libs Revisited: The Whole Program — Hands-on Python: Complete Video Course & Book
- Virtual Environments — Hands-on Python: Complete Video Course & Book