Forums

No module named cairo

Get the following trace while importing matplotlib.pyplot:

import matplotlib.pyplot as plt
File "/usr/local/lib/python2.7/dist-packages/matplotlib/pyplot.py", line 98, in <module>
_backend_mod, new_figure_manager, draw_if_interactive, _show = pylab_setup()
File "/usr/local/lib/python2.7/dist-packages/matplotlib/backends/init.py", line 28, in pylab_setup globals(),locals(),[backend_name],0)
File "/usr/local/lib/python2.7/dist-packages/matplotlib/backends/backend_gtk3agg.py", line 1, in <module>
import cairo
ImportError: No module named cairo ยดยดยด

What can I do?

Type 'cairo' in the Search box above?

... and you should find this post: https://www.pythonanywhere.com/forums/topic/1297/

Let us know if it answers your question!

It helped.