question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Why pip fails to find package even though it is available on PyPI?

See original GitHub issue

Description

In a new machine (or new Python environment), when I try to install requirements from pip install -r requirements.txt I always get ERROR: Could not find a version that satisfies the requirement awswrangler==1.0.0 (for a lot of packages, not only awswrangler).

In that example, requirements.txt requires awswrangler to be in exact version 1.0.0. If you access https://pypi.org/simple/awswrangler/ you can get version 1.0.0

Why this always happens? Is there any way to force download?

Expected behavior

Get all requirements installed with exact versions in TXT file.

pip version

21.2.4

Python version

3.9.7

OS

macOS Big Sur (11.6)

How to Reproduce

  1. Get a new Python environment
  2. pip install from requirements.txt
  3. Check the error and access PyPi simple package site.

Output

ERROR: Could not find a version that satisfies the requirement awswrangler==1.0.0 (from versions: 0.0b0, 0.0b2, 0.0b3, 0.0b4, 0.0b5, 0.0b6, 0.0b7, 0.0b8, 0.0b9, 0.0b10, 0.0b11, 0.0b12, 0.0b13, 0.0b14, 0.0b15, 0.0b16, 0.0b17, 0.0b18, 0.0b19, 0.0b20, 0.0b21, 0.0b22, 0.0b23, 0.0b24, 0.0b25, 0.0b26, 0.0b27, 0.0b28, 0.0b29, 0.0b30, 0.0b31, 0.0b32, 0.0.1, 0.0.2, 0.0.3, 0.0.4, 0.0.5, 0.0.6, 0.0.7, 0.0.8, 0.0.9, 0.0.10, 0.0.11, 0.0.12, 0.0.13, 0.0.14, 0.0.15, 0.0.16, 0.0.17, 0.0.18, 0.0.19, 0.0.20, 0.0.21, 0.0.22, 0.0.23, 0.0.24, 0.0.25, 0.1.0, 0.1.1, 0.1.2, 0.1.3, 0.1.4, 0.2.0, 0.2.1, 0.2.2, 0.2.3, 0.2.4, 0.2.5, 0.2.6, 0.3.0, 0.3.1, 0.3.2, 2.4.0, 2.5.0, 2.6.0, 2.7.0, 2.8.0, 2.9.0, 2.10.0, 2.11.0)
ERROR: No matching distribution found for awswrangler==1.0.0

Code of Conduct

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:5 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
uranusjrcommented, Oct 5, 2021

Merging this into #10421 then.

1reaction
notatallshawcommented, Oct 5, 2021

Oh it’s explicitly in the wheels metadata:

Requires-Python: >=3.6, <3.9

Which I guess comes from this line here: https://github.com/awslabs/aws-data-wrangler/blob/1.0.0/setup.py#L24

The package maintainers for some reason put an upper limit on the Python requirement. You either need to use an older Python, upgrade which version you depend on, or fork the package and change the requirements yourself.

Read more comments on GitHub >

github_iconTop Results From Across the Web

pip fails to find package even though it is available on PyPI
So, it seems PyPI-legacy is not purging the Fastly cache correctly. If you run curl -X PURGE https://pypi.python.org/simple/<package-name> , ...
Read more >
Fix the pip error: Couldn't find a version that satisfies the ...
The package is not available for your operating system. This is a rare case and only happens when the package is not pure-Python,...
Read more >
Pip doesn't find package listed as dependency
This error disappears if I install pyzfp first so I think it's coming from there, even though the logs from the failed pyrevolve...
Read more >
Package installation issues | PyCharm Documentation
One of the possible failure cases occurs when the target package is not available in the repositories supported by the Conda package manager....
Read more >
pip install - pip documentation v22.3.1
Ignore the installed packages, overwriting them. This can break your system if the existing package is of a different version or was installed...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found