python -m pip install -r requirements.txtCommon project bootstrap command for development or deployment.
Dependency installation patterns with pip, including constraints, editable installs, extras, local paths, VCS installs, and resolver control.
python -m pip install -r requirements.txtCommon project bootstrap command for development or deployment.
Generate a pinned requirements file from the active environment.
python -m pip freeze > requirements.txtProduces exact installed versions for reproducible installs.
python -m pip install -r requirements.txt -c constraints.txtConstraints restrict versions without necessarily declaring top-level requirements.
python -m pip install -r requirements.txt -r requirements-dev.txtUseful when splitting runtime and development dependencies.
python -m pip install -e .Common for local package development. Changes in source are reflected without reinstalling.
Install a project in editable mode with optional dependency groups.
python -m pip install -e ".[dev]"Great for local development setups that need test or lint dependencies.
python -m pip install "requests[socks]"Extras activate optional dependency sets defined by the package.
python -m pip install ./my-packageUseful for local monorepo or package development workflows.
python -m pip install ./dist/*.whlHelpful when testing freshly built artifacts locally.
python -m pip install git+https://github.com/pallets/click.gitGood for unreleased code or internal repos exposed via Git.
python -m pip install git+https://github.com/pallets/click.git@8.1.7Pinning a ref improves reproducibility versus floating branches.
python -m pip install https://files.pythonhosted.org/packages/.../package.whlUseful for direct artifacts and private file endpoints.
python -m pip install --upgrade --upgrade-strategy eager fastapiCan help bring an environment fully up to date, but may cause larger dependency changes.
python -m pip install --only-binary pandas pandasUseful when builds from source are slow or unavailable in CI.
Download distributions for another platform or interpreter version.
python -m pip download --platform manylinux2014_x86_64 --python-version 311 --only-binary=:all: numpyOften used when building deploy artifacts for another runtime environment.
python -m pip install --target ./vendor requestsUseful for zip apps, lambdas, or vendored packaging layouts.