pip Verified current stable Not installed? Package Management

Pip / Download Package For Specific Platform And Python Version

Download Package For Specific Platform And Python Version

Downloads a specified package for a specific platform and Python version, only using binary wheels.

$
Terminal
pip download <package> --only-binary :all: --platform <platform> --python-version <version>

When To Use

During deployment of Python applications on specific environments where binary compatibility is critical.

Pro Tip

Use the `--no-deps` flag if dependencies are managed separately to avoid unnecessary conflicts or unexpected installations.

Command Builder

Tune the command before you copy it

Back to syntax
$
Generated Command
pip download <package> --only-binary :all: --platform <platform> --python-version <version>

Anatomy of Output

Understanding the result

Collecting numpy Package

Indicates the package being downloaded.

Downloading numpy-1.21.0-cp38-cp38-manylinux1_x86_64.whl (12.5 MB) File

Shows the specific binary file downloaded.

Successfully installed numpy-1.21.0 Status

Confirms successful installation of the specified package.

Power User Variants

Optimized versions

pip download numpy --only-binary :all: --platform win_amd64 --python-version 3.9

Downloads `numpy` for Windows 64-bit on Python 3.9.

pip download requests --only-binary :all: --platform manylinux2014_aarch64 --python-version 3.8

Targets ARM architecture on Linux for `requests`.

Troubleshooting

Common pitfalls

ERROR: Could not find a version that satisfies the requirement numpy

Solution: Check the platform and Python version for compatibility.

ERROR: Could not install packages due to an EnvironmentError: [Errno 13] Permission denied

Solution: Run with elevated privileges or set a different install directory.

ERROR: No matching distribution found for numpy

Solution: Ensure the package name is correct and the index URL is valid.

Command Breakdown

What each part is doing

pip
Base Command
The executable that performs this operation. Here it runs Pip before the shell applies any redirect operators.
<package>
package
The value supplied for package.
<platform>
platform
The value supplied for platform.
<version>
version
The value supplied for version.
--only-binary
Command Option
Tool-specific option used by this command invocation.
--platform
Command Option
Tool-specific option used by this command invocation.
--python-version
Command Option
Tool-specific option used by this command invocation.

Alternative Approaches

Comparable commands in other tools

Alternative package management tools for the same job.