Reference

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.
CommandWhat it doesExample
python -m venvCreate 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
deactivateLeave the virtual environment.deactivate
pip installInstall a package.pip install requests
pip install (pinned)Install an exact version.pip install "django==5.0"
pip install -rInstall everything in a requirements file.pip install -r requirements.txt
pip freezeWrite exact installed versions to a file.pip freeze > requirements.txt
pip listList installed packages.pip list
pip uninstallRemove a package.pip uninstall requests
pip showShow details about an installed package.pip show requests
pip install -UUpgrade a package to the latest.pip install -U pip
python -mRun a module as a script.python -m http.server 8000
pipxInstall a CLI tool in its own isolated env.pipx install black
uvA fast, modern venv + pip replacement.uv pip install requests