2012年6月15日星期五

pywin32 xp下安装错误

在 python 中 import win32api 时出现

?
>>> import win32api
Traceback (most recent call last):
  File "", line 1, in
ImportError: DLL load failed: 找不到指定的模块。
>>>
解决方法:
拷贝
C:\Python26\Lib\site-packages\pywin32_system32\*

C:\Windows\System32

没有评论:

发表评论