Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

No matching distribution found for multiple packages

Suddenly I get a lot of errors while trying to use my previously working (for many months) requirements file. I tried to go to the pypi.org and get the same 404 error.

Is there something wrong with my setup?

> pip install -r requirements.txt
Collecting get==2019.4.13 (from -r requirements.txt (line 4))
  Cache entry deserialization failed, entry ignored
Exception:
requests.exceptions.HTTPError: 404 Client Error: Not Found for url: https://pypi.org/simple/get/

If I remove line get==2019.4.13 next error is:

> pip install -r requirements.txt
Collecting post==2019.4.13 (from -r requirements.txt (line 11))
  Cache entry deserialization failed, entry ignored
Exception:
requests.exceptions.HTTPError: 404 Client Error: Not Found for url: https://pypi.org/simple/post/
like image 700
Michael Avatar asked Jul 16 '20 03:07

Michael


Video Answer


2 Answers

PyPI administrator here. You probably unintentionally had request instead of requests in your requirements.txt file.

These projects (request, get, post) were removed by their author and no longer exist. You should remove them from your requirements.txt file.

like image 94
Dustin Ingram Avatar answered Oct 07 '22 08:10

Dustin Ingram


I had the similiar problem. I have a django website deployed to Heroku. When I pushed my commit it threw errors like this:

remote:        ERROR: Could not find a version that satisfies the requirement post==2019.4.13 (from -r /tmp/build_f0948004/requirements.txt (line 26)) (from versions: none)
remote:        ERROR: No matching distribution found for post==2019.4.13 (from -r/tmp/build_f0948004/requirements.txt (line 26))

I deleted dependencies below that spat errors in requirements.txt:

get==2019.4.13 
post==2019.4.13 
request==2019.4.13

And I saved my commit and pushed it. Now it works fine.

like image 28
harryghgim Avatar answered Oct 07 '22 08:10

harryghgim