ubuntu - PIP 找不到任何满足 SQLAlchemy 要求的下载

标签 ubuntu proxy ubuntu-12.04 pip pypi

  • Ubuntu 12.04
  • Apache 2.2.22

pip 已停止在我的 ubuntu 服务器上工作,并在我尝试下载任何内容时出现以下错误。

$ sudo pip install SQLAlchemy
Downloading/unpacking SQLAlchemy
  Cannot fetch index base URL http://pypi.python.org/simple/
  Could not find any downloads that satisfy the requirement SQLAlchemy
No distributions at all found for SQLAlchemy
Storing complete log in /home/user/.pip/pip.log

以下所有内容均无效

$ sudo pip install --upgrade pip 
$ sudo apt-get install build-essential

我的 /etc/environment 具有以下以前有效的设置。

http_proxy="http://myproxyhere:portnumberhere/"
HTTP_PROXY="http://myproxyhere:portnumberhere/"

我的/home/user/.pip

------------------------------------------------------------
/usr/bin/pip run on Sat Jun  7 20:08:38 2014
Downloading/unpacking SQLAlchemy

  Getting page http://pypi.python.org/simple/SQLAlchemy
  Could not fetch URL http://pypi.python.org/simple/SQLAlchemy: <urlopen error [Errno 111] Connection refused>
  Will skip URL http://pypi.python.org/simple/SQLAlchemy when looking for download links for SQLAlchemy
  Getting page http://pypi.python.org/simple/
  Could not fetch URL http://pypi.python.org/simple/: <urlopen error [Errno 111] Connection refused>
  Will skip URL http://pypi.python.org/simple/ when looking for download links for SQLAlchemy
  Cannot fetch index base URL http://pypi.python.org/simple/

  URLs to search for versions for SQLAlchemy:
  * http://pypi.python.org/simple/SQLAlchemy/
  Getting page http://pypi.python.org/simple/SQLAlchemy/
  Could not fetch URL http://pypi.python.org/simple/SQLAlchemy/: <urlopen error [Errno 111] Connection refused>
  Will skip URL http://pypi.python.org/simple/SQLAlchemy/ when looking for download links for SQLAlchemy
  Could not find any downloads that satisfy the requirement SQLAlchemy

No distributions at all found for SQLAlchemy

Exception information:
Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/pip/basecommand.py", line 126, in main
    self.run(options, args)
  File "/usr/lib/python2.7/dist-packages/pip/commands/install.py", line 223, in run
    requirement_set.prepare_files(finder, force_root_egg_info=self.bundle, bundle=self.bundle)
  File "/usr/lib/python2.7/dist-packages/pip/req.py", line 948, in prepare_files
    url = finder.find_requirement(req_to_install, upgrade=self.upgrade)
  File "/usr/lib/python2.7/dist-packages/pip/index.py", line 152, in find_requirement
    raise DistributionNotFound('No distributions at all found for %s' % req)
DistributionNotFound: No distributions at all found for SQLAlchemy

有没有人知道可能出了什么问题?

最佳答案

答:升级pip。

我安装了 1.1 版。使用 sudo pip install --upgrade pip 我得到了版本 8.1.2 和我想要正确安装的包。

关于ubuntu - PIP 找不到任何满足 SQLAlchemy 要求的下载,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/24101300/

相关文章:

linux - 颠覆 1.6.6 错误 "Could not open the requested SVN filesystem"

tomcat - 强制使用 SSL 的 ARR 代理到 tomcat

shell - 语法错误 : "(" unexpected on shell script

reactjs - 在运行 react 应用程序的 Docker 容器中代理 API 请求

java - 如何在虚拟环境中使用 django-pipeline?

command-line - 手动停止构建时 Gradle .lock 文件未删除

python - 长时间运行脚本时出现ConnectionError

MySQL 在外部服务器上,拒绝有效用户的访问

php - 为某些网站切换 nginx php 版本

segmentedControl 和 UIAppearance 代理的图形问题