当前位置:网站首页>Python download module to accelerate the implementation of recording

Python download module to accelerate the implementation of recording

2020-11-06 01:22:20 Elementary school students in IT field

Speed up pip download : Replace pip Source

pip download python Foreign source is used by default , Download is slow , Consider replacing it with a domestic source .

Temporary modification source

Tsinghua source

Tsinghua University pip Source , It's the official website pypi Mirror image , every other 5 Sync once a minute , Recommended .

pip install -i https://pypi.tuna.tsinghua.edu.cn/simple
–trusted-host pypi.tuna.tsinghua.edu.cn packagename

Douban source

pip install -i http://pypi.douban.com/simple
–trusted-host pypi.douban.com packagename

Aliyuan

pip install -i http://mirrors.aliyun.com/pypi/simple
–trusted-host mirrors.aliyun.com/pypi/simple/ packagename

Permanent modification

modify ~/.pip/pip.conf file , If not, create a , Write the following ( Take Qinghuayuan for example ):

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

download whl File to install

https://www.lfd.uci.edu/~gohlke/pythonlibs/#lxmlpip

install cvxpy-xxx.whl

 WeChat ID

版权声明
本文为[Elementary school students in IT field]所创,转载请带上原文链接,感谢