pip fails to find new package version even though it is available on PyPI website
See original GitHub issueEnvironment
- pip version: 19.0.3
- Python version: 3.7.3
- OS: macOS 10.15.5
- twine version 3.1.1 (pkginfo: 1.5.0.1, requests: 2.20.1, setuptools: 40.8.0, requests-toolbelt: 0.9.1, tqdm: 4.46.1)
Description I can see the latest version (0.2.1) of my package here – https://pypi.org/project/django-eb-sqs-worker/
But when I try to install it I get the following:
% pip3 install django-eb-sqs-worker==0.2.1
Collecting django-eb-sqs-worker==0.2.1
Could not find a version that satisfies the requirement django-eb-sqs-worker==0.2.1 (from versions: 0.1.0)
No matching distribution found for django-eb-sqs-worker==0.2.1
If i don’t specify the version it installs 0.1.0:
% pip3 install django-eb-sqs-worker
Collecting django-eb-sqs-worker
Installing collected packages: django-eb-sqs-worker
Successfully installed django-eb-sqs-worker-0.1.0
Upgrading also does not work:
% pip3 install --upgrade django-eb-sqs-worker
Requirement already up-to-date: django-eb-sqs-worker in ./.venv/lib/python3.7/site-packages (0.1.0)
Interestingly, the search results show 0.2.1
as the latest version:
% pip3 search django-eb-sqs-worker
django-eb-sqs (1.38) - A simple task manager for AWS SQS
django-eb-sqs-worker (0.2.1) - Django Background Tasks for Amazon Elastic Beanstalk
INSTALLED: 0.1.0
LATEST: 0.2.1
sqs-workers (0.5.2) - SQS Workers
Expected behavior
I expect the latest version of the package be available via pip install
(0.2.1 in this case)
What I’ve tried
- First I’ve uploaded the new version of the package using twine which led to the problem described here
- I’ve tried the “purge” solution described in #4888 with both
https://pypi.python.org/simple/<package-name>
andhttps://pypi.org/simple/<package-name>/ instead.
addresses, but that didn’t resolve the issue - I’ve waited around 12 hours to make sure the index and cache updates, but that did not seem to help
Issue Analytics
- State:
- Created 3 years ago
- Comments:7 (4 by maintainers)
Top Results From Across the Web
Why is pip installing an old version of my package?
If pip install claims to not be able to find the version, see whether pip search can see it. Take a look at...
Read more >pip fails to find package even though it is available on PyPI
It's weird, https://pypi.python.org/simple/fontbakery does not list the 0.3.3 version. Using warehouse instead works: pip install -i https:// ...
Read more >Fix the pip error: Couldn't find a version that satisfies the ...
The package is not present on PyPI server. In this case pip will not work. So you'll have to download and install the...
Read more >pip install pip==1.0.2 - PyPI
pip. pip is a tool for installing and managing Python packages, such as those found in the Python Package Index. pip is a...
Read more >Having issues pip installing? - Discussions on Python.org
py -m pip install SpeechRecognition. Defaulting to user installation because normal site-packages is not writeable. ERROR: Could not find a ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Hi @DataGreed, probably you made some mistake/typo during the build of 0.2.1—0.2.2 is looking good now. One alternative to setuptools is flit, which you might want to consider to avoid having to handle everything explicitly—
flit publish
will take care of setuptools’ and twine’s job in one go. Either way, I believe that this issue is solved and could be closed now.This again proves my point that
twine upload dist/*
is confusing for new-comers in Python packaging ecosystem, regarding which file is to be uploaded.I believe pip has dropped support to eggs for a while now. You’ll need to publish in sdist (tar.gz) or wheel (whl) now.