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

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/42987521/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-08-19 22:22:35  来源:igfitidea点击:

Pip: could not find a version. No matching distribution found

pythonpippackages

提问by smart

I'm trying to install Flask-ACL: https://mikeboers.github.io/Flask-ACL

我正在尝试安装 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

What's wrong here?

这里有什么问题?

P.S. Pip was upgraded a few minutes ago.

PS Pip 几分钟前升级了。

UPDATE:

更新:

$ python --version
Python 2.7.3

I'm running it under virtualenv.

我在 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: )

Cleaning up... No matching distribution found for Flask-ACL

正在清理...没有找到与 Flask-ACL 匹配的分布

As I can see, there is no such package on Pypi:

如我所见,Pypi 上没有这样的包:

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

but this one exist:

但这个存在:

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

What is wrong with my pip?

我的有什么问题pip

回答by abccd

The developers of Flask-ACL made a mistake that they did not manage to upload the Flask-ACL library onto PyPi(where pip searches for modules). so you will have to install it using pip from their GitHub page.

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

You can do so like this:

你可以这样做:

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

回答by Rafa?

Pay attention if your file ~/.pip/pip.confnot contain any additional index-urlvalues. Then it can trying to look for specific package version in repository that not exists.

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

Some workaround solution is to remove pip.conf

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