1.pip config list
命令用于列出当前pip的配置信息。
pip config list
2.在全局配置中设置新的 index-url
pip config set global.index-url https://pypi.tuna.tsinghua.edu.cn/simple
3.如果你只想在当前项目中更改配置,你可以省略 global
pip config set index-url https://pypi.tuna.tsinghua.edu.cn/simple
4.使用 pip config unset
命令来移除一个已经设置的配置项
pip config unset global.index-url