1、添加源
比如添加清華源https://pypi.tuna.tsinghua.edu.cn/simple:
pip config set global.index-url https://pypi.tuna.tsinghua.edu.cn/simple
如果set多次,似乎只能保存最後一次set的鏡像源。
2、刪除源
pip config unset global.index-url
3、查看現在用的哪個源
pip config list
1、添加源
比如添加清華源https://pypi.tuna.tsinghua.edu.cn/simple:
pip config set global.index-url https://pypi.tuna.tsinghua.edu.cn/simple
如果set多次,似乎只能保存最後一次set的鏡像源。
2、刪除源
pip config unset global.index-url
3、查看現在用的哪個源
pip config list
一. 二. 三. ! 作 者 : Yaopengfei(姚鵬飛) 博客地址 : http://www.cnblogs.com