pip Install and Dependencies Cheat Sheet/Resolve for a target platform and Python

Download distributions for another platform or interpreter version.

Section: Resolver and Platform Controls

Resolve for a target platform and Python

bash
bash
python -m pip download --platform manylinux2014_x86_64 --python-version 311 --only-binary=:all: numpy
Explanation

Often used when building deploy artifacts for another runtime environment.

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 Resolver and Platform Controls
Use eager upgrade strategy
Upgrade transitive dependencies more aggressively.
OpenIn sheetbashsame section
Require wheels for a package
Only accept binary wheels for a named package.
OpenIn sheetbashsame section
Install into a target directory
Install packages into a custom filesystem path.
OpenIn sheetbashsame section
Install from requirements file
Install dependencies listed in a requirements file.
Install current project in editable mode
Install a local project with editable imports.
Install from a Git repository over HTTPS
Install a package directly from a Git repo.