1
Ich benutze Python 3.6. Ich habe das Modul comtypes
über denImportError: Kein Modul namens comtypes in Python 3.6
python -m pip install comtypes
Requirement already satisfied: comtypes in c:\users\singtech\appdata\local\programs\python\python36-32\lib\site-packages
Befehl installiert Aber ich bin immer noch die Importfehler für comtypes von meinem Skript bekommen:
import comtypes.client as cc
import comtypes
mylib = cc.GetModule("d:\\path\\to\\mylib.dll")
print(mylib)
Als ich das Skript ausführen, es erzeugt die folgenden Fehler:
Wie führen Sie Ihr Skript aus? –
Ich führe das Skript in [Thonny IDE] (http://thonny.org/) – Sithu
Sie haben Ihr Paket in verschiedenen Interpreter installiert, der zum Ausführen eines Skripts verwendet wird. –