python installation matplotlib: python -m pip install matplotlib error

  • matplotlib python is the powerful drawing modules.
  • First, be sure to install python, and then use pip to install matplotlib module.
  1. Into the cmd window, the recommended execution python -m pip install -U pip setuptools upgrade.
  2. Then type python -m pip install matplotlib automatic installation, the system will automatically download the package.
  3. After the installation is complete, you can use python -m pip list to view all the modules of the machine installation, ensure matplotlib has been successfully installed.

If you can see above matplotlib (2.0.0) to prove your successful installation of

If you're like me being given:


 

  1. Downloading https://files.pythonhosted.org/packages/dd/73/dc25ca27a9960539ef98

4921b0d42368445b856ae0861c3acba542b9a39c/matplotlib-3.1.2-cp37-cp37m-win_amd64.w
hl (9.1MB)
| | 20kB 144bytes/s eta 17:24:10ERROR: Excep
tion:
Traceback (most recent call last):
File "C:\Users\wzc3\AppData\Local\Programs\Python\Python37\lib\site-packages\p
ip\_vendor\urllib3\response.py", line 425, in _error_catcher
yield


 

Do not panic, I'll help you under analysis:

  1.  First of all, if you can see this: | | 20kB 144bytes / S ETA 17:24:10; prove that you have downloaded part
  2. Secondly, look at the end of an error, if you can see this:

    raise ReadTimeoutError(self._pool, None, "Read timed out.")
    pip._vendor.urllib3.exceptions.ReadTimeoutError: HTTPSConnectionPool(host='files
    .pythonhosted.org', port=443): Read timed out. 
    证明,是下载超时

  3. Finally, how to solve it overtime? Lower modify your installation command like this on it:

    -m PIP matplotlib install Python --default-timeout = 10000
    Good luck ~~

Guess you like

Origin www.cnblogs.com/focusta/p/11986375.html