Cheat Sheet
The commands you keep forgetting, with a one-line description and a real example you can copy - 384 across 26 tools. Pick a tool in the sidebar, or search across all of them.
Python (pip & venv)
Virtual environments and package management for Python projects.| Command | What it does | Example |
|---|---|---|
python -m venv | Create a virtual environment. | python -m venv .venv |
activate (mac/Linux) | Enter the virtual environment. | source .venv/bin/activate |
activate (Windows) | Enter the venv on Windows. | .venv\Scripts\activate |
deactivate | Leave the virtual environment. | deactivate |
pip install | Install a package. | pip install requests |
pip install (pinned) | Install an exact version. | pip install "django==5.0" |
pip install -r | Install everything in a requirements file. | pip install -r requirements.txt |
pip freeze | Write exact installed versions to a file. | pip freeze > requirements.txt |
pip list | List installed packages. | pip list |
pip uninstall | Remove a package. | pip uninstall requests |
pip show | Show details about an installed package. | pip show requests |
pip install -U | Upgrade a package to the latest. | pip install -U pip |
python -m | Run a module as a script. | python -m http.server 8000 |
pipx | Install a CLI tool in its own isolated env. | pipx install black |
uv | A fast, modern venv + pip replacement. | uv pip install requests |