Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Matplotlib clash qt4 / qt5
#1
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!
Reply
#2
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...
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Matplotlib: How do I convert Dates from Excel to use in Matplotlib JaneTan 1 3,243 Mar-11-2021, 10:52 AM
Last Post: buran

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020