V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
推荐学习书目
Learn Python the Hard Way
Python Sites
PyPI - Python Package Index
http://diveintopython.org/toc/index.html
Pocoo
值得关注的项目
PyPy
Celery
Jinja2
Read the Docs
gevent
pyenv
virtualenv
Stackless Python
Beautiful Soup
结巴中文分词
Green Unicorn
Sentry
Shovel
Pyflakes
pytest
Python 编程
pep8 Checker
Styles
PEP 8
Google Python Style Guide
Code Style from The Hitchhiker's Guide
yakczh
V2EX  ›  Python

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

  •  
  •   yakczh · 2014-02-19 20:12:59 +08:00 · 17183 次点击
    这是一个创建于 3719 天前的主题,其中的信息可能已经有所发展或是发生改变。
    17 条回复    1970-01-01 08:00:00 +08:00
    yakczh
        1
    yakczh  
    OP
       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
        2
    wwqgtxx  
       2014-02-19 20:31:06 +08:00 via Android
    和github一样,因为他们用的cdn被墙,fastly.net
    你可以试试v2提供的pypi镜像
    http://pypi.v2ex.com/simple
    lsylsy2
        3
    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
        4
    yhf  
       2014-02-19 20:38:06 +08:00
    yakczh
        5
    yakczh  
    OP
       2014-02-19 21:31:58 +08:00
    @wwqgtxx 我是用pip install 安装的,怎么换?
    dorentus
        6
    dorentus  
       2014-02-19 21:35:30 +08:00
    @lsylsy2 楼主标题里那个 URL 尾部有个空白字符,大概是全角空格……

    https://pypi.python.org/simple/
    这个链接是 OK 的。
    wwqgtxx
        7
    wwqgtxx  
       2014-02-19 21:56:54 +08:00 via Android
    @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
        8
    wwqgtxx  
       2014-02-19 21:58:10 +08:00 via Android
    @dorentus 你是浏览器全局代理吧…
    ummterry
        9
    ummterry  
       2014-02-19 23:03:09 +08:00
    よし!勉強になった!
    Zkiller
        10
    Zkiller  
       2014-02-20 00:43:19 +08:00
    @dorentus 犀利,这都看出了,差点被误导。
    yakczh
        11
    yakczh  
    OP
       2014-02-20 08:26:00 +08:00
    yakczh
        12
    yakczh  
    OP
       2014-02-20 08:26:25 +08:00
    yakczh
        13
    yakczh  
    OP
       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
        14
    ericls  
       2014-02-20 13:26:22 +08:00
    打不开!
    9hills
        15
    9hills  
       2014-02-20 13:48:10 +08:00
    @yakczh 用pypi.douban.com这个源吧
    liamchzh
        16
    liamchzh  
       2014-03-03 18:55:14 +08:00   ❤️ 1
    mrbrooks
        17
    mrbrooks  
       2014-04-02 09:44:05 +08:00
    @liamchzh 终于找到了解决方法,谢谢,哈哈
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   2629 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 29ms · UTC 05:01 · PVG 13:01 · LAX 22:01 · JFK 01:01
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.