1. Problem description
pip/pip3 install reports an error "Could not find a version that satisfies the requriement xxx", as shown below:
Two, troubleshooting ideas
1. Check the network configuration
I tried yum and wget and there was an error, and I found that it was a network problem. Check the network configuration file, it turns out that you forgot to configure DNS.
2. Whether the pip version is too low
If the pip version is too low, you can use the following command to upgrade pip:
python -m pip install --upgrade pip
3. Try to replace the source
If the first two ideas still do not solve the problem, you can try to replace it with a domestic mirror source, for example:
pip install 包名 -i http://pypi.douban.com/simple/ --trusted-host pypi.douban.com