gpt4 book ai didi

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

转载 作者:太空狗 更新时间:2023-10-29 22:24:57 32 4
gpt4 key购买 nike

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

这里有什么问题吗?

附言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 出了什么问题?

最佳答案

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

你可以这样做:

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

关于python - Pip:找不到版本。找不到匹配的分布,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/42987521/

32 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com