https://pypi.python.org/simple/  这个你能打开吗

2014-02-19 20:12:59 +08:00
 yakczh
17195 次点击
所在节点    Python
17 条回复
yakczh
2014-02-19 20:13:20 +08:00
Cannot fetch index base URL https://pypi.python.org/simple
Could not find any downloads that satisfy the requirement
wwqgtxx
2014-02-19 20:31:06 +08:00
和github一样,因为他们用的cdn被墙,fastly.net
你可以试试v2提供的pypi镜像
http://pypi.v2ex.com/simple
lsylsy2
2014-02-19 20:32:45 +08:00
Something went wrong

We're sorry! An error occurred trying to fulfill your request.
Check http://status.python.org or follow @PythonStatus for issues.
yhf
2014-02-19 20:38:06 +08:00
yakczh
2014-02-19 21:31:58 +08:00
@wwqgtxx 我是用pip install 安装的,怎么换?
dorentus
2014-02-19 21:35:30 +08:00
@lsylsy2 楼主标题里那个 URL 尾部有个空白字符,大概是全角空格……

https://pypi.python.org/simple/
这个链接是 OK 的。
wwqgtxx
2014-02-19 21:56:54 +08:00
@yakczh
指定pypi源的方法:
pip install tornado -i http://pypi.v2ex.com/simple

也可以是全局的模式
在unix和macos,配置文件为:$HOME/.pip/pip.conf
在windows上,配置文件为:%HOME%\pip\pip.ini
需要在配置文件内加上:
[global]
index-url=http://pypi.v2ex.com/simple
wwqgtxx
2014-02-19 21:58:10 +08:00
@dorentus 你是浏览器全局代理吧…
ummterry
2014-02-19 23:03:09 +08:00
よし!勉強になった!
Zkiller
2014-02-20 00:43:19 +08:00
@dorentus 犀利,这都看出了,差点被误导。
yakczh
2014-02-20 08:26:00 +08:00
yakczh
2014-02-20 08:26:25 +08:00
yakczh
2014-02-20 08:30:48 +08:00
@yhf
这个源可以安装,只是执行setup.py出错了 

Running setup.py (path:d:\temp\pip_build_caizh\pycurl\setup.py) egg_info for package pycurl
Please specify --curl-dir=/path/to/built/libcurl
Complete output from command python setup.py egg_info:
Please specify --curl-dir=/path/to/built/libcurl

----------------------------------------
Cleaning up...
Command python setup.py egg_info failed with error code 10 in d:\temp\pip_build_x\pycurl
Storing debug log for failure in C:\Users\xx\pip\pip.log
ericls
2014-02-20 13:26:22 +08:00
打不开!
9hills
2014-02-20 13:48:10 +08:00
@yakczh 用pypi.douban.com这个源吧
liamchzh
2014-03-03 18:55:14 +08:00
mrbrooks
2014-04-02 09:44:05 +08:00
@liamchzh 终于找到了解决方法,谢谢,哈哈

这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。

https://www.v2ex.com/t/100962

V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。

V2EX is a community of developers, designers and creative people.

© 2021 V2EX