Open jp18813100494 opened 5 years ago
It is caused by not installing the PyQt5.
pip install PyQt5
works for me.
I got this error while trying to use matplotlib in a cron job to create and save plot image files.
The solution that worked for me was to import matplotlib before matplotlib.pyplot e.g.
import matplotlib as mpl
mpl.use('Agg')
import matplotlib.pyplot as plt
Anyone know why the problem occurs?Help me!