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
Nginx条件代理传递
为什么Nginx会断开我的下载? (时间到?)
用TOR运行python脚本
如何在Windows XP中转发进程的TCP / IP通信?
Apache HttpClient 4每个代理的持续连接,而不是每个路由
------------------------------------------------------------ /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 @R_765_4045@ion: 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
有没有人有任何想法可能会出错?
编写用于Windows的SNMP代理程序:SnmpAPI.Lib或MgmtAPI.lib?
linux ubuntu服务器,不能完成“sudo apt-get install ubuntu-desktop”
Nginx反向代理设置
将Nginx中的proxy_pass转换为EC2实例的私有IP
您需要通过HTTPS获取pypi,而不是HTTP。
出于某种原因,您的pip被配置为从http://pypi.python.org/simple/检索,而不是https://pypi.python.org/simple/
答:升级点子。
我有版本1.1安装。 随着sudo pip install --upgrade pip我得到了版本8.1.2和我想正确安装的软件包。
您未使用自2013年末以来使用的https连接。
您可以使用–index选项来更正索引url。 见http://pip.readthedocs.org/en/latest/reference/pip_wheel.html#index-url
你可以通过一个特定的索引url -i :
sudo pip install sqlAlchemy -i https://pypi.python.org/simple
为什么不尝试在超级用户中安装pip? 键入su和密码,然后尝试sudo pip install sqlAlchemy
解决方案1:升级pip
sudo pip install --upgrade pip -i https://pypi.python.org/simple
那么,你可以使用pip作为:
sudo pip install sqlAlchemy
解决方案2:使用-i指定索引URL
sudo pip install sqlAlchemy -i https://pypi.python.org/simple
虽然这是个老问题,但我的解决方案可能会帮助别人。
pip install sqlAlchemy --extra-index-url=https://pypi.python.org/simple/
这对我有用。
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 [email protected] 举报,一经查实,本站将立刻删除。