Home > other >  Python matplotlib, installed the countless times is always unsuccessful
Python matplotlib, installed the countless times is always unsuccessful

Time:11-18

With Python2.7.9, ImportError: matplotlib requires dateutil, ImportError: matplotlib requires pyparsing, No module name six of these three problems have been solved, but still go wrong,
 & gt;> The import matplotlib 

Traceback (the most recent call last) :
The File "& lt; Pyshell# 18 & gt;" , line 1, in
The import matplotlib
The File "C: \ Python27 \ lib \ site - packages \ matplotlib \ set py", line 124, in & lt; module>
The from matplotlib. Rcsetup import (defaultParams,
The File "C: \ Python27 \ lib \ site - packages \ matplotlib \ rcsetup py", line 26, in & lt; module>
The from matplotlib. Colors import is_color_like
The File "C: \ Python27 \ lib \ site - packages \ matplotlib \ colors py", line 59, in & lt; module>
The import matplotlib. Cbook as cbook
AttributeError: 'module' object has no attribute 'cbook

CodePudding user response:

Python 3.5.1 track of, use PIP install matplotlib installation, a successful, completely no problem.

CodePudding user response:

The last figure

CodePudding user response:

reference raining 2 floor response:

on a diagram
I download matplotlib no problem with version 3.5 comes with PIP, installation error

CodePudding user response:

reference raining 2 floor response:

on a diagram
scipy with PIP, easy_install installation is not smooth, the later is to download one. To WHL file. Zip format after violence to that under the lib folder to use, but with such violent side of the matplotlib doesn't work

CodePudding user response:

Slow network will interrupt, another machine with the four times before the installation was successful, every time is downloaded part is interrupted, prompt a pile, the last is:
Raise ReadTimeoutError (self _pool, None, 'Read timed out.')
PIP. _vendor. Requests. Packages. Urllib3. Exceptions. ReadTimeoutError: HTTPSConnectionPool (host='pypi.python.org', the port=443) : Read timed out.

CodePudding user response:

Don't you know only PIP install matplotlib this kind of installation way?
Manually download the installation package and then PIP install c: \ matplotlib tar

CodePudding user response:

Problem has been solved, is not the original IDE, pycharm instead, all problems are solved

CodePudding user response:

raining reference 5 floor response:
slow network will interrupt, another machine with the four times before the installation was successful, every time is downloaded part is interrupted, prompt a pile, the last is:
Raise ReadTimeoutError (self _pool, None, 'Read timed out.')
PIP. _vendor. Requests. Packages. Urllib3. Exceptions. ReadTimeoutError: HTTPSConnectionPool (host='pypi.python.org', the port=443) : Read timed out.


The same problem

CodePudding user response:

Terminal type python -m PIP install - U - force - reinstall PIP


With a PIP install matplotlib installation

CodePudding user response:

reference rain, 9/f, the daughter of the lion and the eagle _ griffin response:
terminal input python -m PIP install - U - force - reinstall PIP


Reoccupy PIP install matplotlib install

Post you can find four years ago, brother...

CodePudding user response:

references to the tenth floor MuSa xiaoxiang reply:
Quote: refer to the rain, the daughter of the lion and the eagle, 9/f, _ griffin response:
terminal input python -m PIP install - U - force - reinstall PIP


Reoccupy PIP install matplotlib install

Post you can find four years ago, brother...

, can't, I find a lot of posts to find solutions, posted one thousand people in need to see can save time
  • Related