V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
Distributions
Ubuntu
Fedora
CentOS
中文资源站
网易开源镜像站
lwjefSub
V2EX  ›  Linux

清华大学开源镜像站 PyPI镜像 支持 IPv4/IPv6

  •  
  •   lwjefSub · 2012-05-06 15:09:40 +08:00 · 9048 次点击
    这是一个创建于 4376 天前的主题,其中的信息可能已经有所发展或是发生改变。
    算是多了一个选择
    http://mirrors.tuna.tsinghua.edu.cn/
    5 条回复    1970-01-01 08:00:00 +08:00
    Showfom
        1
    Showfom  
       2012-05-06 15:20:41 +08:00
    看到好多红色的同步失败⋯⋯
    lwjefSub
        2
    lwjefSub  
    OP
       2012-05-06 15:43:55 +08:00
    @Showfom - - 我相信其他的镜像站点也会同步失败的 没太大问题的
    sodapanda
        3
    sodapanda  
       2012-05-06 15:54:19 +08:00
    怎样把这个源加入到 easy_install 或者 pip 里边呀?
    lwjefSub
        4
    lwjefSub  
    OP
       2012-05-06 16:38:14 +08:00   ❤️ 2
    @sodapanda

    使用pip的用户可以如下配置:
    在unix和macos,配置文件为: $HOME/.pip/pip.conf
    在windows上,配置文件为:%HOME%\pip\pip.ini
    需要在配置文件内加上
    [global]
    indexl-url=http://mirrors.tuna.tsinghua.edu.cn/pypi/simple
    然后就可以了

    使用easy_install的用户可以如下配置:
    在unix和macos,配置文件为:~/.pydistutils.cfg
    在windows上,配置文件为:%HOME%\pydistutils.cfg
    在配置文件中加上
    [easy_install]
    index-url=http://mirrors.tuna.tsinghua.edu.cn/pypi/simple

    https://groups.google.com/forum/?fromgroups#!topic/python-cn/Q2S_mdDO-jA
    shiweifu
        5
    shiweifu  
       2012-05-08 11:35:01 +08:00
    @lwjefSub 感谢,已保存到evernote
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   3353 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 26ms · UTC 04:57 · PVG 12:57 · LAX 21:57 · JFK 00:57
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.