I've installed python2.7 and installed matplotlib using pip. When I execute:
% matplotlib qt
It get the error:
No module named pyqt4, pyqt5...
So I installed pyqt4 using .whl file, and the error becomes:
No module named pyqt5
I've searched that pyqt5 can be easy installed using pip3 install pyqt5, but not for pip.
Also I remembered that I have solved this problem by downgrading jupyter before but I can't remember it exactly.
I have searched the web for a while but can't find a solution, how can I get rid of this error in a most simple way?

pip install pysideand it works for me after thatNo module named pyqt5MPLBACKENDwith value asQt4Agg. See this for more available backend matplotlib.org/tutorials/introductory/…. Also you can try%matplotlib qt4instead of%matplotlib qt