我是一名有用的助手,可以为您翻译以下内容:
但是我在脚本中仍然遇到了 comtypes 的导入错误:
当我运行这个脚本时,它会产生以下错误:
我正在使用Python 3.6。我已经通过命令安装了模块comtypes
。
python -m pip install comtypes
Requirement already satisfied: comtypes in c:\users\singtech\appdata\local\programs\python\python36-32\lib\site-packages
但是我在脚本中仍然遇到了 comtypes 的导入错误:
import comtypes.client as cc
import comtypes
mylib = cc.GetModule("d:\\path\\to\\mylib.dll")
print(mylib)
当我运行这个脚本时,它会产生以下错误:
Traceback (most recent call last):
File "D:\python-apps\aos.py", line 1, in <module>
import comtypes.client as cc
ImportError: No module named 'comtypes'