我正在尝试安装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这里怎么了?
几分钟前升级了。
更新:
$ python --version
Python 2.7.3我是在虚拟环境下运行的。
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: )清理..。无匹配分布的烧瓶-ACL
正如我所看到的,在Pypi上没有这样的方案:
https://pypi.python.org/simple/flask-acl/但这一种存在:
https://pypi.python.org/pypi/Flask-ACL我的pip怎么了?
发布于 2017-03-23 21:50:29
Flask的开发人员犯了一个错误,他们没有将Flask库上传到PyPi(其中pip搜索模块)。因此,您必须使用来自他们的GitHub页面的pip来安装它。
你可以这样做:
pip install "git+https://github.com/mikeboers/Flask-ACL"发布于 2021-09-24 09:02:27
这种错误的一个更常见的原因可能是您的环境不符合包的要求。
例如,如果环境的Python版本与包指定的所需Python版本不匹配,就会发生这种情况:
(my_python36_env)> pip install package_that_requires_python37
ERROR: Could not find a version that satisfies the requirement package_that_requires_python37.
ERROR: No matching distribution found for package_that_requires_python37.发布于 2020-04-18 11:57:26
如果您的文件~/.pip/pip.conf不包含任何附加的index-url值,请注意。然后,它可以尝试在存储库中查找不存在的特定包版本。
一些解决方案是删除pip.conf。
https://stackoverflow.com/questions/42987521
复制相似问题