Skip to content

Latest commit

 

History

History
20 lines (13 loc) · 380 Bytes

pip-change-sources.md

File metadata and controls

20 lines (13 loc) · 380 Bytes

给python的pip更换软件源

1.更新软件列表并安装nano

sudo apt update -y && sudo apt install nano -y

2.使用命令更新到最新的pip

pip install -i https://pypi.tuna.tsinghua.edu.cn/simple pip -U

3.使用以下命令切换软件源(pip >= 10.0.0)

pip config set global.index-url https://pypi.tuna.tsinghua.edu.cn/simple