Ich bin relativ neu zu Python sowie Matplotlib und ich kann es nicht zur Arbeit bekommen. Vom Code:Kein Modul namens Matplotlib mit Matplotlib installiert Python 2.7
import networkx as nx
import matplotlib.pyplot as plt
G=nx.Graph()
G.add_node("spam")
G.add_edge(1,2)
plt.show()
ich den Fehler:
Traceback (most recent call last):
File "test.py2", line 2, in <module>
import matplotlib.pyplot as plt
ImportError: No module named matplotlib.pyplot
Dies geschieht, obwohl es in installiert zu sein scheint:
usr/lib/python2.7/dist-packages/matplotlib/
Haben Sie Jungs irgendwelche Ideen? Vielen Dank im Voraus
Ich verwende Ubuntu 16.04.1 LTS – JKP
Überprüfen Sie, ob Ihre Datei das richtige Python-Verzeichnis trifft. – Versatile
Typ 'which python' zu überprüfen Sie Ihren Python-Pfad –