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

原文地址:https://www.cnblogs.com/qinguoyi/p/9071637.html