最近学习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