Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Using --platform flag with pip3 download not working when downloading kubernetes #12144

Closed
1 task done
zohiba opened this issue Jul 14, 2023 · 1 comment
Closed
1 task done
Labels
S: needs triage Issues/PRs that need to be triaged type: bug A confirmed bug or unintended behavior

Comments

@zohiba
Copy link

zohiba commented Jul 14, 2023

Description

I have a requirements file with the following contents:

kubernetes==11.0.0

Using the command pip3 download -r requirements.txt -d wheelhouse --platform linux_x86_64 --only-binary=:all
But it is giving the Error

ERROR: Could not find a version that satisfies the requirement pyyaml>=3.12 (from kubernetes) (from versions: none)
ERROR: No matching distribution found for pyyaml>=3.12

Expected behavior

I expected it to download kubernetes and all dependencies for the linux_x86_64 arch and put it in wheelhouse dir.

How can I download this for different arch using pip?

pip version

pip 23.1.2

Python version

python 3.10

OS

mac

How to Reproduce

Create a requirements.txt file with
kubernetes==11.0.0
Run the command pip3 download -r requirements.txt -d wheelhouse --platform linux_x86_64 --only-binary=:all

Output

ERROR: Could not find a version that satisfies the requirement pyyaml>=3.12 (from kubernetes) (from versions: none)
ERROR: No matching distribution found for pyyaml>=3.12

Code of Conduct

@zohiba zohiba added S: needs triage Issues/PRs that need to be triaged type: bug A confirmed bug or unintended behavior labels Jul 14, 2023
@uranusjr
Copy link
Member

Duplicate of #10760

@uranusjr uranusjr marked this as a duplicate of #10760 Jul 14, 2023
@uranusjr uranusjr closed this as not planned Won't fix, can't repro, duplicate, stale Jul 14, 2023
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Aug 14, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
S: needs triage Issues/PRs that need to be triaged type: bug A confirmed bug or unintended behavior
Projects
None yet
Development

No branches or pull requests

2 participants