Python Forum

Full Version: Matplotlib clash qt4 / qt5
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hello everybody, I am seeking help for my python installation. I recently reinstalled Anaconda to use Python 3 and matplotlib doesn't work anymore. Even for the simplest code:

import matplotlib.pyplot as pyplot
pyplot.plot([1, 2, 3, 4, 5, 6],[4, 5, 1, 3, 6, 7])
pyplot.show()
I receive this error message:
"ImportError: Cannot load backend 'Qt4Agg' which requires the 'qt4' interactive framework, as 'qt5' is currently running" when pyplot.plot is called


Does any of you know where is the problem from. I never used QT before (didn't even know matplotlib used it) and I can't debug my code fast enough because of this mistake.

Thank you for reading guys!
After some investigation, it seems that the issue is due to Spyder (no problem to run on Conda) Don't know why Spyder forces Matplotlib on qt4 though...