Python镜像源配置指南
Python 配置镜像源
1. 查看当前源
pip config get global.index-url
2. 临时变更源
pip install paddlepaddle -i https://mirror.baidu.com/pypi/simple
3. 永久变更源
清华(推荐速度最快)
pip config set global.index-url https://pypi.tuna.tsinghua.edu.cn/simple
百度
pip config set global.index-url https://mirror.baidu.com/pypi/simple
腾讯
pip config set global.index-url https://mirrors.cloud.tencent.com/pypi/simple
中国科学技术大学开源软件镜像站
pip config set global.index-url https://mirrors.ustc.edu.cn/pypi/web/simple
4. 官方镜像源
pip config set global.index-url https://pypi.org/simple
5. 注意
- 第三方镜像源可能出现包或包对应的版本找不到情况,切换一下到其他镜像源就可以了。
作者:yimtcode