windows下pip换源

来源

http://www.cnblogs.com/microman/p/6107879.html

用法

可以直接:

1
pip install -i https://pypi.tuna.tsinghua.edu.cn/simple pyspider

使用清华镜像

或者在user目录中创建一个pip目录,如:C:\Users\xx\pip,新建文件pip.ini。内容:

1
2
3
4
[global]
index-url = http://mirrors.aliyun.com/pypi/simple/
[install]
trusted-host=mirrors.aliyun.com

公众号推荐

推荐一波自己的公众号:五道口的程序狐

里面有一个聊天机器人,抚慰你的心灵

mp

如有需要,联系contact@fhao.top