문제

the script contains:

import win32api

When I run it, it gives me an error message “ImportError: DLL load failed: %1 is not a valid Win32 application.”

I googled it and do accordingly whatever found including downloaded and installed from http://sourceforge.net/projects/pywin32/, and also moved both files ‘pywintypes27.dll’ and ‘pythoncom27.dll’ to disk location c:\Python27\Lib\site-packages\win32. However the problem persists.

What can I do to have it working?

thanks.

도움이 되었습니까?

해결책

thansk jonrsharpe and Vasili Syrakis for the helps.

it's strange. I turned my computer off and on again. Found other modules involved scripts also return the same error message.

I uninstalled and re-installed Python 27 (Active Python). the problem disappeared...

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top