Skip to content

pip

Valid platforms

Source

Downloading packages for a different platform

Source

Source

pip download \
    $package==$package_version \
    --platform=$platform \
    --implementation=cp \  # cp = CPython
    --python-version=$pyversion \
    --only-binary=:all:

Use pip without attempting to use the internet

pip will by default attempt to read the public PyPi index. This will cause various commands to wait for a timeout when used on airgapped systems.

To avoid this, run commands without the index:

pip download/install/... \
    --no-index ...