Python pip 使用国内镜像源
1、执行以下两个命令,设置全局使用国内源(中科大)
1 | pip config set global.index-url https://mirrors.ustc.edu.cn/pypi/web/simple |
2、输出(查看)现有的pip源:
1 | pip config list |
本博客所有文章除特别声明外,均采用 CC BY-NC-SA 4.0 许可协议。转载请注明来自 Laohoo!
评论
1、执行以下两个命令,设置全局使用国内源(中科大)
1 | pip config set global.index-url https://mirrors.ustc.edu.cn/pypi/web/simple |
2、输出(查看)现有的pip源:
1 | pip config list |