What Do I Do If "Could not find a version that satisfies the requirement xxx" Is Displayed During pip3 install Execution?
Symptom
During dependency installation, running the pip3 install xxx command to install related software reports a network access failure and outputs the message "Could not find a version that satisfies the requirement xxx." Run the apt-get update command to check whether the software source is available. The error message is displayed as follows.
Figure 1 Message displayed upon installation using pip3.7.5


Possible Cause
The pip source is not configured.
Solution
Configure the pip source as follows:
- Run the following command as the ATC installation user.
cd ~/.pip
If a message indicating that the directory does not exist is displayed, run the following commands to create a directory.
mkdir ~/.pip cd ~/.pip
Run the following command to create a pip.conf file in the .pip directory.
touch pip.conf
- Edit the pip.conf file.
Run the vi pip.conf command to open the pip.conf file. Write the following content, then save the file and exit.
[global] #Configure the source as required. index-url=http://xxx [install] #Configure the trusted host as required. trusted-host=xxx
Parent topic: FAQs