如果pip版本>=10.0.0,则可使用以下pip config set global.index-url命令进行配置,具体示例(以清华大学国内镜像源为例)如下:
pip config set global.index-url https://pypi.tuna.tsinghua.edu.cn/simple
如果pip版本>=10.0.0,则可使用以下pip config set global.index-url命令进行配置,具体示例(以清华大学国内镜像源为例)如下:
pip config set global.index-url https://pypi.tuna.tsinghua.edu.cn/simple