# Virtual Environments and pip

A virtual environment gives each Python project its own private set of packages, pip installs packages into it from PyPI, and a requirements.txt with exact versions lets any computer install the same set with one command.

![Cheat sheet: Virtual Environments and pip](https://fsdtrainingmedia.blob.core.windows.net/public/images/2026/11/99d93398a69945b0827485794d6e34e1.webp)

- Category: Python
- Level: Apprentice
- Tags: pip, PyPI, python, requirements.txt, software-development, Third-Party Library, Version Pinning, Virtual Environment (python)
- Author: Gregor Dzierzon
- Updated: November 23, 2026

Source: https://www.ask-codey.com/cheat-sheets/python-venv-and-pip-cheat-sheet
