這里說明一下,配置文件中的url還可以換成下面的URL
臨時更改鏡像源
阿里雲 http://mirrors.aliyun.com/pypi/simple/
中國科技大學 https://pypi.mirrors.ustc.edu.cn/simple/
豆瓣(douban) http://pypi.douban.com/simple/
清華大學 https://pypi.tuna.tsinghua.edu.cn/simple/
中國科學技術大學 http://pypi.mirrors.ustc.edu.cn/simple/
例如pip install lxml -i https://pypi.tuna.tsinghua.edu.cn/simple/
導入國內鏡像,就根據自己的網速來下載了,希望能幫到大家。
永久更改鏡像源
在 “C:\Users\用戶名” 文件夾下,添加pip文件夾,文件夾內新建pip.ini文件,內容為:
[global]
index-url = https://pypi.tuna.tsinghua.edu.cn/simple
2019-11-1819:57:23