ImportError: No module named matplotlib
-
Dieser Fehler kommt beim Ausführen von python. Aber matplotlib ist installiert...
Woran liegts?
-
numpy installiert?
Ansonsten probiers mal hiermit. Da ist das alles schon dabei: http://portablepython.com/wiki/PortablePython2.7.3.1
-
Dobi schrieb:
Ansonsten probiers mal hiermit. Da ist das alles schon dabei: http://portablepython.com/wiki/PortablePython2.7.3.1
Damit kommt der Fehler auch (Windows XP 32 und Windows 7 64).
-
Poste mal bitte ein Minimalbeispielcode, der bei dir diesen Fehler erzeugt.
-
import setuptools
ergibt:
Traceback (most recent call last): File "blah.py", line 1, in ? import setuptools ImportError: No module named setuptools
setuptools ist installiert...
-
Also bei mir:
asdasd.pyimport setuptools import matplotlib import michgibtsnich
->
PortablePython2.7.3.1\App\python.exe asdasd.py Traceback (most recent call last): File "asdasd.py", line 3, in <module> import michgibtsnich ImportError: No module named michgibtsnich
Und das sieht bei dir mit PortablePython2.7.3.1 (sicher, dass du das auch wirklich benutzt?) anders aus?
-
Check doch mal, ob nicht ein anderes Python in deinem Pfad liegt.
-
Es liegt gar kein Python im Path, aber dennoch wird python beim Aufrufen von "python" im anderen Ordner aufgerufen.
-
Ich habe ehrlich gesagt keine Ahnung, wie sowas unter Windows funktioniert. Unter unixoiden Betriebssystemen würde ich jetzt vmtl. Shell-Aliases oä. checken. Wobei das schon sehr weit hergeholt ist.