Pip:找不到版本。找不到匹配的分布

时间:2017-03-23 21:39:28

标签: python pip packages

我尝试安装Flask-ACL: https://mikeboers.github.io/Flask-ACL

$ pip search acl | grep -i flask

Flask-ACL (0.0.1) - Access control lists for Flask.
flask-miracle-acl (0.2) - The fabric between the Flask framework and Miracle ACL

Flask-Sandbox (0.1.0)- ACL Route controls for Flask
Flask-SimpleACL (1.2)- Simple ACL extension


$ pip install Flask-ACL

Collecting Flask-ACL
Could not find a version that satisfies the requirement Flask-ACL (from versions: )
No matching distribution found for Flask-ACL

这里有什么问题?

P.S。 Pip在几分钟前升级了。

更新:

$ python --version
Python 2.7.3

我在virtualenv下运行它。

pip install -Iv Flask-ACL

Collecting Flask-ACL
1 location(s) to search for versions of Flask-ACL:
* https://pypi.python.org/simple/flask-acl/
Getting page https://pypi.python.org/simple/flask-acl/
Looking up "https://pypi.python.org/simple/flask-acl/" in the cache
Current age based on date: 507
Freshness lifetime from max-age: 600
Freshness lifetime from request max-age: 600
The response is "fresh", returning cached response
600 > 507
Analyzing links from page https://pypi.python.org/simple/flask-acl/
Could not find a version that satisfies the requirement Flask-ACL (from versions: )

清理......   找不到Flask-ACL的匹配分布

正如我所看到的,Pypi上没有这样的软件包:

https://pypi.python.org/simple/flask-acl/

但这个存在:

https://pypi.python.org/pypi/Flask-ACL

我的pip有什么问题?

3 个答案:

答案 0 :(得分:7)

Flask-ACL的开发人员犯了一个错误,他们没有设法将Flask-ACL库上传到PyPi(pip搜索模块)。所以你必须使用他们的GitHub页面中的pip来安装它。

你可以这样做:

pip install "git+https://github.com/mikeboers/Flask-ACL"

答案 1 :(得分:0)

如果文件~/.pip/pip.conf不包含任何其他index-url值,请注意。 然后,它可以尝试在不存在的存储库中查找特定的软件包版本。

一些解决方法是删除pip.conf

答案 2 :(得分:0)

我在 anaconda 中安装了烧瓶,但是在使用导入时遇到了一些问题

from tensorflow.keras.applications.imagenet_utils import preprocess_input, decode_predictions

所以代替上面的命令,我把它改成了

from tensorflow.python.keras.applications.imagenet_utils import preprocess_input, decode_predictions

效果很好

相关问题