設置阿里雲pip源,加速pip更新速度

Linux系統:

mkdir ~/.pip
cat > ~/.pip/pip.conf << EOF
[global]
trusted-host=mirrors.aliyun.com
index-url=https://mirrors.aliyun.com/pypi/simple/
EOF

Windows系統:

首先在window的文件夾窗口輸入 : %APPDATA%
而後建立pip文件夾
最後建立pip.ini文件,寫入以下內容
[global]
index-url = https://mirrors.aliyun.com/pypi/simple/
[install]
trusted-host=mirrors.aliyun.com

添加清華大學pip源

mkdir ~/.pip
cat > ~/.pip/pip.conf << EOF
[global]
index-url = https://pypi.tuna.tsinghua.edu.cn/simple
EOF
相關文章
相關標籤/搜索