Windows Console schließt sofort, wenn ein installiertes Modul importiert wird, aber in Pycharm funktioniert

Post a reply

Smilies
:) :( :oops: :chelo: :roll: :wink: :muza: :sorry: :angel: :read: *x) :clever:
View more smilies

BBCode is ON
[img] is ON
[flash] is OFF
[url] is ON
Smilies are ON

Topic review
   

Expand view Topic review: Windows Console schließt sofort, wenn ein installiertes Modul importiert wird, aber in Pycharm funktioniert

by Anonymous » 25 Feb 2025, 11:02

Ich bin mir nicht sicher, warum, aber jede Python -Datei, in der OpenCV importiert wurde, lässt die Windows -Konsole sofort schließen und das Programm zum Beenden. Keine Fehler, keine Gefroren, das Fenster schließt einfach. > Hier ist ein einfaches Code -Beispiel, um das Problem zu replizieren: < /p>

Code: Select all

import cv2

print("hello world")
Die von mir installierte OpenCV-Python-Version ist 4.11.0.86 Wenn das hilft.
Ich weiß nicht, was zu tun ist . Jede Hilfe wird geschätzt.

Top