Python venv + pip Cheat Sheet/Install without dependencies

Install a package while skipping dependency resolution.

Section: Requirements and lock-style workflows

Install without dependencies

bash
bash
python -m pip install --no-deps mypackage
Explanation

Useful in controlled builds or when debugging dependency issues.

Learn the surrounding workflow

Compare similar commands or jump into common fixes when this command is part of a bigger troubleshooting path.

Related commands

Same sheet · prioritizing Requirements and lock-style workflows
Install a requirements file
Install project dependencies from requirements.txt.
OpenIn sheetbashsame section
Install development requirements
Install a second requirements file for dev-only tools.
OpenIn sheetbashsame section
Write a requirements snapshot
Freeze the current environment to a file.
OpenIn sheetbashsame section
Compare installed packages to requirements
Diff the current environment snapshot against a file.
OpenIn sheetbashsame section
Install from hash-checked requirements
Require pinned hashes during install.
OpenIn sheetbashsame section
Editable install of current project
Install the current project in editable mode.
OpenIn sheetbash1 tag match