1

Ich bin mit einem AWS Cluster EMR 5.3.1 mit Hadoop + Funke + Hive + ZeppelinAmazon EMR Cluster matplotlib Fehler

Wenn ich Zeppelin und Typ-Befehl:

%python 
import matplotlib.pyplot as plt 
plt.plot([1, 2, 3]) 

ich Fehler:

ImportError: Gtk3 backend requires pygobject to be installed. 

Wie löst man es?

Antwort

3

Fügen Sie diese Zeile - matplotlib.use ('Agg')

import matplotlib 
    matplotlib.use('Agg') 
    import matplotlib.pyplot as plt 
    plt.plot([1,2,3]) 
Verwandte Themen