Error Message "read time out" is Displayed When pip3 Is Run

Symptom

An error is reported when you use pip3 to download related dependencies. For example, when you run the pip3 install scipy command to install the dependency, the error message "read time out" is displayed, as shown in the following figure.

Possible Causes

An unstable network prolongs the download time and slows down the download speed. This problem often occurs when large packages such as NumPy and SciPy are downloaded in socket communication.

Solution

Use the -i parameter to specify other common sources, as shown in the following command:

1
pip3 install scipy -i xxx

xxx indicates the available source entered based on your requirements.