cbfinn / gps

Guided Policy Search
http://rll.berkeley.edu/gps/
Other
593 stars 239 forks source link

ImportError: Failed to import any qt binding #109

Open jp18813100494 opened 5 years ago

jp18813100494 commented 5 years ago

Anyone know why the problem occurs?Help me!

wuweijia1994 commented 5 years ago

It is caused by not installing the PyQt5. pip install PyQt5 works for me.

ajarv commented 5 years ago

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