The error message is as follows: ERROR: Could not find a version that satisfies the requirement library name
ERROR: No matching distribution found for 库名
A summary of many possible causes on the Internet and more feasible methods in practice are as follows:
1. The version of pip is too low
Use the "python -m pip install --upgrade pip" command in the command line window to update pip. When the following information appears, the update is successful:
2. Change the pip source and use domestic mirror sources for acceleration
Use the "pip install library name -i https://pypi.tuna.tsinghua.edu.cn/simple/" command to re-download. This is the open source software mirror station of Tsinghua University. If we have a long network connection to the pip default source, No, using domestic websites can help us download.
Use "pip install library name -i http://pypi.douban.com/simple/--trusted-host pypi.douban.com"
Command to accelerate, this is Douban source, the suffix of --trusted-host pypi.douban.com is to obtain the SSL certificate authentication.
You can try several domestic sources:
1) http://mirrors.aliyun.com/pypi/simple/ Alibaba Cloud
2) https://pypi.mirrors.ustc.edu.cn/simple/ University of Science and Technology of China
3) http://pypi.mirrors.ustc .edu.cn/simple/ University of Science and Technology of China
When using these three sources, please add the --trusted-host domain name to the suffix like the Douban source mentioned above.