pip Flags & Options
The standard Python package installer.All pip pages
- pip install --no-deps: install a package without its dependenciespip install --no-deps installs a package without its dependencies. When it helps (pinned files, conda, own project), checking with pip check, extras, pitfalls.
- pip install --only-binary=:all:: install wheels only, never build from sourcepip install --only-binary=:all: uses wheels only and never builds sdists; a missing wheel fails with No matching distribution found. --no-binary and more.
- pip install --require-hashes: verify every package against a sha256 hashpip install --require-hashes checks every package against a sha256 hash and requires == pins. Missing and wrong hash errors, generating hashes, platforms.
- pip install -c constraints.txt: limit versions without installing thempip install -c constraints.txt limits versions of every installed package, including transitive ones, without installing anything itself. Examples and pitfalls.