mac修改國內鏡像源

在終端進入目錄: cd ~/.pip/
如果沒有 .pip 文件夾,新建文件夾: mkdir .pip
cd .pip 

nano pip.conf

粘貼如下內容

[global]
index-url = http://mirrors.aliyun.com/pypi/simple/
[install]
trusted-host=mirrors.aliyun.com

或者

清華鏡像源

[global]
index-url = https://pypi.tuna.tsinghua.edu.cn/simple
[install]
trusted-host=pypi.tuna.tsinghua.edu.cn

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