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

Taught in

References