现在的位置: 首页 > Linux > shell脚本 > 正文
国内使用easy_install和pip超时问题解决
2014年08月16日 shell脚本 ⁄ 共 525字 国内使用easy_install和pip超时问题解决已关闭评论 ⁄ 被围观 20,816 views+

最近学习Python,遇到easy_install和pip超时问题,解决办法记录如下:

pip

    pip 配置文件中添加(不存在则创建)

  • Unix、Linux或Mac OS下,配置文件路径为::  $HOME/.pip/pip.conf
  • Windows系统下,配置文件路径为:  %HOME%\pip\pip.ini

[global]
find-links=http://pypi.douban.com/simple
[instal]
find-links=
http://pypi.douban.com/simple
http://pypi.v2ex.com/simple

easy_install

easy_install 配置文件中添加(不存在则创建)

  • Unix、Linux或Mac OS下,配置文件路径为:  $HOME/.pydistutils.cfg
  • Windows系统下,配置文件路径为:  %HOME%\pydistutils.cfg

[easy_install]
index-url=http://pypi.douban.com/simple
find-links=
http://pypi.douban.com/simple
http://pypi.v2ex.com/simple

【上篇】
【下篇】

抱歉!评论已关闭.

×