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

> 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

有人有什么想法可能会出错吗?

您需要通过HTTPS获取pypi,而不是HTTP.

由于某些原因,您的点配置为从http://pypi.python.org/simple/而不是https://pypi.python.org/simple/检索

相关文章

ubuntu退出redis的示例:指定配置文件方式启动源码redis:roo...
ubuntu中mysql改密码忘了的解决方法:1.在终端中切换到root权...
ubuntu安装mysql失败的解决方法原因:可能是原有的MySQL还有...
使用centos和ubuntu建站的区别有以下几点1.CentOS是Linux发行...
ubuntu图形界面和字符界面切换的方法:可以通过快捷键CTRL+A...
ubuntu中重启mysql失败的解决方法1.首先,在ubuntu命令行中,...