gps
gps copied to clipboard
ImportError: Failed to import any qt binding
Anyone know why the problem occurs?Help me!
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