1. 程式人生 > >python pip 更換國內安裝源(windows)

python pip 更換國內安裝源(windows)

打開 tar pan ini文件 col window color -h oba

1.點擊此電腦,在最上面的的文件夾窗口輸入 : %APPDATA%

2.按回車跳轉到以下目錄,新建pip文件夾

3.創建pip.ini文件

4.打開文件夾,輸入以下內容,關閉即可(註意:源鏡像可替換)

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

5.國內源鏡像有:

V2EX:http://pypi.v2ex.com/simple
豆瓣:http://pypi.douban.com/simple
中國科學技術大學:http://pypi.mirrors.ustc.edu.cn/simple


清華:https://pypi.tuna.tsinghua.edu.cn/simple

python pip 更換國內安裝源(windows)