解决Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after

Reason for error: connection of foreign mirror source

Solution: change to domestic mirror source download


Solution: Configure to use a mirror source to download by default

Step1: Create a new pip folder in the path C: \ Users \ xxx, and create a new pip.ini file under this folder. Open the file, copy the following content to the pip.ini file, and save

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

Step2: Install third-party libraries with pip

Instruction: pip install xxx (library name)

Published 23 original articles · praised 7 · visits 1983

Guess you like

Origin blog.csdn.net/weixin_44641176/article/details/102633735