即使是使用win32file的简单脚本,我也无法使py2exe正确打包
我不断收到以下错误消息:
Traceback (most recent call last):
File "dependency_checker.py", line 1, in <module>
File "win32file.pyc", line 12, in <module>
File "win32file.pyc", line 10, in __load
ImportError: DLL load failed: The specified procedure could not be found.
脚本如下:
import win32file
print "Hello world!"
这里是setup.py:
from distutils.core import setup
import py2exe
setup(console=['dependency_checker.py'])
你以前有过类似的问题吗?
版本:
以python 2.6.2、py2exe 0.6.9、pywin32-214、windows 7和windows xp pro为目标计算机
更新:
“我的开发人员”框(Windows7)上的这一行在“测试框”(WindowsXP)上运行正常,但返回错误。
**更新2:**
当我使用imp.load_dynamic从python安装中加载win32file时,我可以为dist文件夹重新加载win32file.pyd,而不会出现错误。