import win32api error in Python 2.6

后端 未结 11 2719
野的像风
野的像风 2020-11-27 02:53

When running python26 under windows OS (64bits)..... I have got errors like:

import win32api\" error in Python 2.6: pywintypes26.dll

or

11条回答
  •  一整个雨季
    2020-11-27 03:02

    I don't whether it's too late or not to answer this question. I also hit this problem, and I tried every method above, but neither of them worked.
    Finally, I found the reason. When we install pywin32, we must choose the one that fits python's version(2.6, 2.7, 3.3, etc) and python's bit number(x64 or x86). Notice, it must fits python's bit number, not PC's bit number. If you install x86 python in a x64 PC, you have to install a pywin32 with x86.

提交回复
热议问题