Skip to content

--target required for --python-version even though using --ignore-installed --dry-run #12215

Closed
@thejcannon

Description

@thejcannon

Description

Just a corner case, most like. I'm using --ignore-installed --dry-run --report XYZ.txt --python-version=3.9 --only-binary=:all:

and I'm seeing ERROR: Can not use any platform or abi specific options unless installing via '--target'

The workaround is just --target .

Expected behavior

No error, since the target really doesn't matter (I think. Happy to be wrong).

pip version

23.1.2

Python version

Running on 3.11, targeting 3.9

OS

Ubuntu

How to Reproduce

$ pip install --ignore-installed --dry-run --report report.txt --python-version 3.9 --only-binary=:all: toml

Output

ERROR: Can not use any platform or abi specific options unless installing via '--target'

Code of Conduct

Metadata

Metadata

Assignees

No one assigned

    Labels

    S: needs triageIssues/PRs that need to be triagedtype: bugA confirmed bug or unintended behavior

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions