Ich habe ein Programm, in dem ein Teil davon einige Daten mit Matplotlib in ein einfaches Diagramm zeichnet. Es funktioniert gut, wenn ich es von Pycharm ausführe, aber wenn ich es mit Pyinstaller oder automatisch-py-to-exe kompiliere, das Programm aus dem EXE ausführe und versuche, das Diagramm zu erhalten, erhalte ich den Fehler:
ERROR:root:
Traceback (most recent call last):
File "weeklyGiving.py", line 837, in graph_by_date
File "PyInstaller\loader\pyimod03_importers.py", line 495, in exec_module
File "graphThis.py", line 28, in
File "PyInstaller\loader\pyimod03_importers.py", line 495, in exec_module
File "matplotlib\__init__.py", line 153, in
from . import _api, _version, cbook, _docstring, rcsetup
File "PyInstaller\loader\pyimod03_importers.py", line 495, in exec_module
File "matplotlib\rcsetup.py", line 27, in
from matplotlib.colors import Colormap, is_color_like
File "PyInstaller\loader\pyimod03_importers.py", line 495, in exec_module
File "matplotlib\colors.py", line 56, in
from matplotlib import _api, _cm, cbook, scale
File "PyInstaller\loader\pyimod03_importers.py", line 495, in exec_module
File "matplotlib\scale.py", line 22, in
from matplotlib.ticker import (
File "PyInstaller\loader\pyimod03_importers.py", line 495, in exec_module
File "matplotlib\ticker.py", line 138, in
from matplotlib import transforms as mtransforms
File "PyInstaller\loader\pyimod03_importers.py", line 495, in exec_module
File "matplotlib\transforms.py", line 49, in
from matplotlib._path import (
ImportError: DLL load failed while importing _path: The specified module could not be found.
Durch verschiedene Beiträge durch die Auseinandersetzung mit verschiedenen Dingen, wie z. ). Die msvcp140.dll- und vcruntime140.dll -Dateien, die ich verstehe, die Matplotlib benötigt. Beide sind in meinem Ordner \ windows \ system32 vorhanden. meine ide, aber nicht nach dem zusammengestellten zu exe. Irgendwelche Gedanken?
Ich habe ein Programm, in dem ein Teil davon einige Daten mit Matplotlib in ein einfaches Diagramm zeichnet. Es funktioniert gut, wenn ich es von Pycharm ausführe, aber wenn ich es mit Pyinstaller oder automatisch-py-to-exe kompiliere, das Programm aus dem EXE ausführe und versuche, das Diagramm zu erhalten, erhalte ich den Fehler: [code]ERROR:root: Traceback (most recent call last): File "weeklyGiving.py", line 837, in graph_by_date File "PyInstaller\loader\pyimod03_importers.py", line 495, in exec_module File "graphThis.py", line 28, in File "PyInstaller\loader\pyimod03_importers.py", line 495, in exec_module File "matplotlib\__init__.py", line 153, in from . import _api, _version, cbook, _docstring, rcsetup File "PyInstaller\loader\pyimod03_importers.py", line 495, in exec_module File "matplotlib\rcsetup.py", line 27, in from matplotlib.colors import Colormap, is_color_like File "PyInstaller\loader\pyimod03_importers.py", line 495, in exec_module File "matplotlib\colors.py", line 56, in from matplotlib import _api, _cm, cbook, scale File "PyInstaller\loader\pyimod03_importers.py", line 495, in exec_module File "matplotlib\scale.py", line 22, in from matplotlib.ticker import ( File "PyInstaller\loader\pyimod03_importers.py", line 495, in exec_module File "matplotlib\ticker.py", line 138, in from matplotlib import transforms as mtransforms File "PyInstaller\loader\pyimod03_importers.py", line 495, in exec_module File "matplotlib\transforms.py", line 49, in from matplotlib._path import ( ImportError: DLL load failed while importing _path: The specified module could not be found. [/code] Durch verschiedene Beiträge durch die Auseinandersetzung mit verschiedenen Dingen, wie z. ). Die msvcp140.dll- und vcruntime140.dll -Dateien, die ich verstehe, die Matplotlib benötigt. Beide sind in meinem Ordner \ windows \ system32 vorhanden. meine ide, aber nicht nach dem zusammengestellten zu exe. Irgendwelche Gedanken?[code]import matplotlib.pyplot as plot
class LineGraph: def __init__(self, pairs=[['2023-01-01', 352.76], ['2023-01-15', 725.48]]): self.x = [] self.y = [] for item in pairs: self.x.append(item[0]) self.y.append(item[1])
Ich versuche, das Paket XLSX zu laden. Es wird jedoch einwandfrei installiert. Wenn ich jedoch versuche, es mit Bibliothek (XLSX) zu laden Ich erhalte den Fehlermeldungsfehler: Paket oder Namespace...
Ich versuche, mein Python-Skript mit Auto-py-to-exe zu kompilieren, und es hat großartig funktioniert (unter Windows 10).
Aber als ich versuchte, das Programm auf einem anderen Computer auszuführen...
Ich habe versucht, psycopg2 unter dem Pycharm-Editor mit Python 3.13 und psycopg2-binary 2.9.10 zu installieren.
Ich habe diesen Fehler erhalten:
Traceback (most recent call last):File...
Ich arbeite an einem Flask-Projekt mit SQLAlchemy und PostgreSQL. Wenn ich versuche, die Flask-App auszuführen, erhalte ich die folgende Fehlermeldung:
Fehler: Beim Importieren von „App“ wurde ein...