如何更换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

posted @ 2022-08-25 14:13  o蹲蹲o  阅读(15)  评论(0编辑  收藏  举报