web123456

pip source change

pipSome domestic mirrors

Alibaba Cloud /pypi/simple/
University of Science and Technology of China /simple/
Douban (douban) /simple/
Tsinghua University /simple/
University of Science and Technology of China /simple/

Modify the file

File location (modify or create)

~/.config/pip/

File content

[global]

index-url =/pypi/simple/

No matching distribution found for package

Solution:
Method 1: Modify the file as follows, modify it to the encryption source https

[global]
index-url =/pypi/simple/

Method 2: Modify the file as follows: Add trusted-host

[global]
index-url =/pypi/simple/
[install]
trusted-host =

Method 3, Temporary Method

pip install package --trusted-host 
  • 1

refer to
Replace (Pypi) pip source to domestic mirror