Cannot Import Matplotlib After Installing Pyparsing, Dateuil, Six And Numpy
As title, I cannot import matplotlib... And here is the code: import cv2 import numpy as np from matplotlib import pyplot as plt img = cv2.imread('picture.jpg',0) f = np.fft.fft2(
Solution 1:
It's a pyparsing issue:
https://github.com/matplotlib/matplotlib/issues/6399
Just wait for fix. Or you can upgrade python to 3.5
Solution 2:
The error has occurred due to the recent version of pyparsing
being in conflict with matplotlib
, which pip has picked up.
The workaround would be to: pip install pyparsing==2.1.1
followed by pip install matplotlib
Solution 3:
I had install the newest pyparsing(2.1.3) and this issue is fixed !
Download page: https://pypi.python.org/pypi/pyparsing/2.1.3
Post a Comment for "Cannot Import Matplotlib After Installing Pyparsing, Dateuil, Six And Numpy"