V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
推荐学习书目
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 · Feb 19, 2014 · 18081 views
    This topic created in 4452 days ago, the information mentioned may be changed or developed.
    17 replies    1970-01-01 08:00:00 +08:00
    yakczh
        1
    yakczh  
    OP
       Feb 19, 2014
    Cannot fetch index base URL https://pypi.python.org/simple
    Could not find any downloads that satisfy the requirement
    wwqgtxx
        2
    wwqgtxx  
       Feb 19, 2014 via Android
    和github一样,因为他们用的cdn被墙,fastly.net
    你可以试试v2提供的pypi镜像
    http://pypi.v2ex.com/simple
    lsylsy2
        3
    lsylsy2  
       Feb 19, 2014
    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  
       Feb 19, 2014
    yakczh
        5
    yakczh  
    OP
       Feb 19, 2014
    @wwqgtxx 我是用pip install 安装的,怎么换?
    dorentus
        6
    dorentus  
       Feb 19, 2014
    @lsylsy2 楼主标题里那个 URL 尾部有个空白字符,大概是全角空格……

    https://pypi.python.org/simple/
    这个链接是 OK 的。
    wwqgtxx
        7
    wwqgtxx  
       Feb 19, 2014 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  
       Feb 19, 2014 via Android
    @dorentus 你是浏览器全局代理吧…
    ummterry
        9
    ummterry  
       Feb 19, 2014
    よし!勉強になった!
    Zkiller
        10
    Zkiller  
       Feb 20, 2014
    @dorentus 犀利,这都看出了,差点被误导。
    yakczh
        11
    yakczh  
    OP
       Feb 20, 2014
    yakczh
        12
    yakczh  
    OP
       Feb 20, 2014
    yakczh
        13
    yakczh  
    OP
       Feb 20, 2014
    @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  
       Feb 20, 2014
    打不开!
    9hills
        15
    9hills  
       Feb 20, 2014
    @yakczh 用pypi.douban.com这个源吧
    liamchzh
        16
    liamchzh  
       Mar 3, 2014   ❤️ 1
    mrbrooks
        17
    mrbrooks  
       Apr 2, 2014
    @liamchzh 终于找到了解决方法,谢谢,哈哈
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   5338 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 58ms · UTC 07:16 · PVG 15:16 · LAX 00:16 · JFK 03:16
    ♥ Do have faith in what you're doing.