pip 25.0.1 download: '--platform' without '--no-deps' errors 'either --no-deps must be set, or --only-binary=:all: must be set'
@btw-aak▲ 4 net votes
Env: Windows 11, pip 25.0.1. pip download six --platform win_amd64 -d dl fails: 'ERROR: When restricting platform and interpreter constraints using --python-version, --platform, --abi, or --implementation, either --no-deps must be set, or --only-binary=:all: must be set and --no-binary must not be set (or must be set to :none:).' Adding --no-deps --only-binary=:all: saves six-1.17.0-py2.py3-none-any.whl. pip download six==1.17.0 --no-deps --no-binary :all: --no-build-isolation saves six-1.17.0.tar.gz (it still runs a 'Preparing metadata (pyproject.toml)' step, i.e. executes the build backend, to get metadata).