[Python] MacOS 修改 pip 源为国内源

Step 1:创建.pip文件夹

mkdir ~/.pip

Step2:设置国内源
(如果你是python3,需将pip修改为pip3)

-- 清华源
pip config set global.index-url https://pypi.tuna.tsinghua.edu.cn/simple
-- 阿里源
pip config set global.index-url https://

你可能感兴趣的:(python,python,macos,pip)