pip添加镜像源和删除镜像源

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

posted @ 2023-03-13 11:17  极客船长  阅读(1405)  评论(0编辑  收藏  举报