Seite 1 von 1

py2exe funktioniert nicht mit matplotlib

Verfasst: Mittwoch 14. Februar 2018, 14:36
von funkheld
Hallo, guten tag.

py2exe funktioniert mit einem normalen Pythonprogramm, mit Tkinter und wxPython.
Im Ordner sind alle Dateien und die Exe funktioniert.
Wenn ich mit py2exe ein Programm von Matplotlib erzeuge befindet sich nur der Ordner TCL drin , nichts anderes.
So leer sind alle Ordner wenn ich MatPlotlib benutze.

Ich benutze Python 2.7.14

Gruss

Re: py2exe funktioniert nicht mit matplotlib

Verfasst: Donnerstag 15. Februar 2018, 11:26
von funkheld
Dieses Programm funktioniert wenn ich es mit python.exe.... aufrufe.

Code: Alles auswählen

import matplotlib.pyplot as plt
import numpy as np

cvalues = [20.1, 20.8, 21.9, 22.5, 22.7, 22.3, 21.8, 21.2, 20.9, 20.1]

C = np.array(cvalues)
print(C)

plt.plot(C)
plt.show()
mit py2exe ist nur der "Tcl -Ordner " in dist, weiter nichts.

Gruss