pip Requirements and Locking Cheat Sheet/Install a package without dependencies

Skip resolver dependency installation.

Section: Repeatable Installs

Install a package without dependencies

bash
bash
python -m pip install --no-deps ./dist/my_package.whl
Explanation

Helpful when dependencies are preinstalled or controlled separately.

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 Repeatable Installs
Install with required hashes
Require hash verification for all requirements.
OpenIn sheetbashsame section
Build a local wheelhouse
Download all requirements into a local artifact directory.
OpenIn sheetbashsame section
Install from a wheelhouse offline
Install from local artifacts without contacting indexes.
OpenIn sheetbashsame section
Constrain a direct install
Apply version constraints to a direct install.
Generate JSON install report
Write a structured report during installation.
Maintain layered requirement files
Example pattern for base + dev requirement layering.