Permanently change the source of Python under MacOS, and permanently change the source of Python Pip

# 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

The following are some domestic sources compiled by myself->

Tsinghua University: https://pypi.tuna.tsinghua.edu.cn/simple

Alibaba Cloud: https://mirrors.aliyun.com/pypi/simple

University of Science and Technology of China https://pypi.mirrors.ustc.edu.cn/simple

Douban: http://pypi.douban.com/simple

Tencent source: http://mirrors.cloud.tencent.com/pypi/simple

Guess you like

Origin blog.csdn.net/Cavin80/article/details/124405563