本文介绍了在 Python 2.6 中导入 win32api 错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在windows OS(64位)下运行python26时.....我有如下错误:

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

import win32api" error in Python 2.6: pywintypes26.dll

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

我已经完成了python26的msi安装所有 dll 都可以在 C:\Python26\Lib\site-packages\pywin32_system32

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

推荐答案

在我将 pywintypes26.dll 和 pythoncom26.dll 从 C:\Python26\Lib\site-packages\pywin32_system32 复制到 之后>C:\Python26\Lib\site-packages\win32 -> 解决问题!

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!

这篇关于在 Python 2.6 中导入 win32api 错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

06-23 00:27