import win32api error in Python 2.6

Vin.X picture Vin.X · Aug 30, 2011 · Viewed 68.3k times · Source

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

import win32api" error in Python 2.6: pywintypes26.dll

or

pythoncom26.dll missing
ImportError: DLL load failed: The specified module could not be found.

I have done the msi installation for python26 all dlls can be found under C:\Python26\Lib\site-packages\pywin32_system32

Answer

Vin.X picture Vin.X · Sep 2, 2011

After I copy pywintypes26.dll and pythoncom26.dll from C:\Python26\Lib\site-packages\pywin32_system32 to C:\Python26\Lib\site-packages\win32 -> Solve the problem!