# MacOs 下Pip 换源->
cd ~
mkdir .pip
cd .pip
touch pip.conf
vi pip.conf
# 写入配置
[global]
index-url = http://mirrors.aliyun.com/pypi/simple/
[install]
trusted-host = mirrors.aliyun.com
以下是自己整理的一些国内源->
清华大学:https://pypi.tuna.tsinghua.edu.cn/simple
阿里云:https://mirrors.aliyun.com/pypi/simple
中国科学技术大学 https://pypi.mirrors.ustc.edu.cn/simple
豆瓣:http://pypi.douban.com/simple
腾讯源:http://mirrors.cloud.tencent.com/pypi/simple
这篇博客介绍了如何在MacOS系统中更换Pip的默认源,以提高Python包的下载速度。具体步骤包括创建.pip目录,编辑pip.conf文件,并添加阿里云、清华大学等国内知名源的URL。此外,还提供了多个可靠的国内Python包镜像源供选择。
1万+

被折叠的 条评论
为什么被折叠?



