Ubuntu 下更改pip源

Ubuntu 下更改pip源

mkdir ~/.pip
sudo gedit ~/.pip/pip.conf
之後在新窗口中寫入:
[global]
index-url = https://pypi.tuna.tsinghua.edu.cn/simple
[install]
trusted-host=mirrors.aliyun.com
大功告成

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章