pip3 installation problem

Replacing pip with a domestic source can greatly improve the success rate and speed of installation.
mkdir ~/.pip
vim ~/.pip/pip.conf

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

You can also directly pip3 install -r xxxxxxxxxxxxxxxxx -i address below

List of domestic sources

Ali cloud  http://mirrors.aliyun.com/pypi/simple/
China University of Science and Technology  https://pypi.mirrors.ustc.edu.cn/simple/
watercress  http://pypi.douban.com/simple
Python official  https ://pypi.python.org/simple/
v2ex  http://pypi.v2ex.com/simple/
Chinese Academy of Sciences  http://pypi.mirrors.opencas.cn/simple/
Tsinghua University  https://pypi.tuna. tsinghua.edu.cn/simple/

Guess you like

Origin blog.csdn.net/ccagy/article/details/113175617