Ubuntn16.04修改pip源

将python的pip源修改为中科大的镜像

cd ~
touch pip.conf
sudo gedit pip.conf

在新打开的文件中写入:

[global]
trusted-host =  pypi.mirrors.ustc.edu.cn
index-url = https://pypi.mirrors.ustc.edu.cn/simple

然后reboot即可生效.

 

https://blog.csdn.net/e15273/article/details/79649876

posted @ 2018-05-22 13:42  两猿社  阅读(217)  评论(0编辑  收藏  举报