pip升级

参考地址:https://www.cnblogs.com/Xinenhui/p/17074582.html



第一步:更新数据源,默认国外的基本无法下载,更换到aliyun
cd ~;mkdir .pip;touch .pip/pip.conf
cat >> ./.pip/pip.conf <<'EOF'
[global]
index-url = https://mirrors.aliyun.com/pypi/simple/
[install]
trusted-host=mirrors.aliyun.com
EOF


第二步:
python -m pip install --upgrade pip==20.3.4

 

posted @ 2025-05-09 15:49  SimpleSmile  阅读(9)  评论(0)    收藏  举报