找不到多个软件包的匹配分布 [英] No matching distribution found for multiple packages

查看:354
本文介绍了找不到多个软件包的匹配分布的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

突然,我在尝试使用以前工作的(很多个月)的需求文件时遇到很多错误. 我试图去pypi.org并遇到相同的404错误.

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.

我的设置是否有问题?

> 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/

如果我删除第get==2019.4.13行,则下一个错误是:

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/

推荐答案

我遇到了类似的问题.我有一个django网站部署到Heroku.当我推送提交时,它抛出了如下错误:

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))

我删除了requirements.txt中出现以下错误的依赖项:

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.

这篇关于找不到多个软件包的匹配分布的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆