-
Notifications
You must be signed in to change notification settings - Fork 3k
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
pip download: python_version in requirements file and --python-version option does not work #11198
Comments
@sashkab Thanks for filing this issue.
Why do you expect this? When using Python 3.10, |
If you add |
@pradyunsg I assume the OP is expecting |
@pradyunsg I edited description to show that I supply
Did I misunderstood the explanation? |
Ah, right. |
@pradyunsg what would be the workaround at this point? My use-case – if I'm preparing docker-image and have access only to python3.10, but need to download wheels for other python versions? |
As far as I know there is now workaround at the moment. I'm marking this as awaiting PR. At first sight, one needs to pass options such as |
Actually I think we can close this as a duplicate of #10050 which as more context and discussion of a possible approach towards a solution. |
Description
Consider following requirements file:
Then running following command with pip using python 3.10:
All wheels are available in the
src
directory.Unfortunately, download fails with following error:
Expected behavior
wheel for numexpr 2.7.3 would be downloaded.
pip version
22.1.2
Python version
3.10.4
OS
macOS, linux
How to Reproduce
Create requirements.txt file:
Ensure wheels are available in the
src
directory.Run command
Output
Code of Conduct
The text was updated successfully, but these errors were encountered: