Python:ImportError:没有名为“ win32types”的模块

时间:2019-02-22 11:04:30

标签: python python-3.x pywin32 win32com

我尝试使用win32com从python(3.5)打开word文档 我安装了pywin32,pypiwin32,win32com和其他一些... 我启动了> python pywin32_postinstall.py -install 没事做。 尝试启动makepy.py时,总是出现错误

> python makepy.py
Generating to [...]\AppData\Local\Temp\pywin32\gen_py\00020905-0000-0000-C000-000000000046x0x8x5.py
Building definitions from type library...
Generating...
Importing module
Traceback (most recent call last):
  File "makepy.py", line 443, in <module>
    rc = main()
  File "makepy.py", line 436, in main
    bBuildHidden=hiddenSpec)
  File "makepy.py", line 329, in GenerateFromTypeLibSpec
    info.minor)
  File "[...]\Python35\lib\site-packages\win32\com\client\gencache.py", line 653, in AddModuleToCache
    mod = _GetModule(fname)
  File "[...]\Python35\lib\site-packages\win32\com\client\gencache.py", line 735, in _GetModule
    mod = __import__(mod_name)
  File "[...]\AppData\Local\Temp\pywin32\gen_py\00020905-0000-0000-C000-000000000046x0x8x5.py", line 10, in <module>
    import win32.com.client.CLSIDToClass, win32.com, win32types
ImportError: No module named 'win32types'

0 个答案:

没有答案