Pip找不到满足要求Flask == 0.10.1的任何下载

时间:2015-12-24 18:07:34

标签: python flask pip

这完全是奇怪的,因为这在我的机器上有效。我从github分出了一个repo,创建了一个新的virtualenv,然后尝试了

pip install -r requirements.txt

我收到以下错误:

Downloading/unpacking Flask==0.10.1 (from -r requirements.txt (line 1))
  Could not find any downloads that satisfy the requirement Flask==0.10.1 (from -r requirements.txt (line 1))
Cleaning up...
No distributions at all found for Flask==0.10.1 (from -r requirements.txt (line 1))
Storing debug log for failure in /home/michael/.pip/pip.log

以下内容存储在我的调试日志中:

/home/michael/git/blueprint_ex/env/bin/pip run on Thu Dec 24 09:57:08 2015
Downloading/unpacking Flask==0.10.1 (from -r requirements.txt (line 1))
  Getting page https://pypi.python.org/simple/Flask/
  URLs to search for versions for Flask==0.10.1 (from -r     requirements.txt (line 1)):
  * https://pypi.python.org/simple/Flask/0.10.1
  * https://pypi.python.org/simple/Flask/
  Getting page https://pypi.python.org/simple/Flask/0.10.1
  Could not fetch URL https://pypi.python.org/simple/Flask/0.10.1: 404 Client Error: Not Found
  Will skip URL https://pypi.python.org/simple/Flask/0.10.1 when looking for download links for Flask==0.10.1 (from -r requirements.txt (line 1))
  Analyzing links from page https://pypi.python.org/simple/flask/
  Could not find any downloads that satisfy the requirement Flask==0.10.1 (from -r requirements.txt (line 1))
Cleaning up...
No distributions at all found for Flask==0.10.1 (from -r requirements.txt (line 1))
Exception information:
Traceback (most recent call last):
  File "/home/michael/git/blueprint_ex/env/local/lib/python2.7/site-packages/pip/basecommand.py", line 122, in main
    status = self.run(options, args)
  File "/home/michael/git/blueprint_ex/env/local/lib/python2.7/site-packages/pip/commands/install.py", line 304, in run
    requirement_set.prepare_files(finder, force_root_egg_info=self.bundle, bundle=self.bundle)
  File "/home/michael/git/blueprint_ex/env/local/lib/python2.7/site-packages/pip/req.py", line 1178, in prepare_files
url = finder.find_requirement(req_to_install, upgrade=self.upgrade)
  File "/home/michael/git/blueprint_ex/env/local/lib/python2.7/site-packages/pip/index.py", line 277, in find_requirement
raise DistributionNotFound('No distributions at all found for %s' % req)
 DistributionNotFound: No distributions at all found for Flask==0.10.1 (from -r requirements.txt (line 1))

我的requirements.txt文件看起来像

Flask==0.10.1
Flask-SQLAlchemy==2.0
Flask-WTF==0.11
Jinja2==2.8
MarkupSafe==0.23
SQLAlchemy==1.0.10
WTForms==2.1
Werkzeug==0.11.3
argparse==1.2.1
coverage==3.7.1
itsdangerous==0.24
nose==1.3.4
wsgiref==0.1.2                 

有谁知道问题是什么?我以前能够在同一台机器上安装另一个virtualenv Flask,所以这特别令人沮丧。而且,我试过了

pip install SQLAlchemy

这很好。

pip install Flask

pip install Flask==0.10.1

给我与上面相同的错误消息。

有什么想法吗?

谢谢!

1 个答案:

答案 0 :(得分:0)

请测试您是否可以访问“https://pypi.python.org/simple/Flask/”。也许您需要为https设置代理。