如何更换pip源?
[root@localhost ~]# cd ~ [root@localhost ~]# mkdir .pip [root@localhost ~]# cd .pip [root@localhost .pip]# vim pip.conf [global] index-url=https://pypi.tuna.tsinghua.edu.cn/simple trusted-host = pypi.tuna.tsinghua.edu.cn
centos Ubuntu 都适用
参考资料
https://blog.csdn.net/jiankunking/article/details/86627207