Pyinstaller和py2exe似乎总是在尝试运行时产生错误。即使是弹出空白窗口的简单测试程序也无法运行。
PyInstaller错误:
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "c:\python27\lib\site-packages\PyInstaller-2.1-py2.7.egg\PyInstaller\loader\pyi_importers.py", line 270, in load_module
exec(bytecode, module.__dict__)
File "C:\Users\jammerxd\Desktop\VEXDisplayServer\build\test\out00-PYZ.pyz\wx", line 22, in <module>
File "c:\python27\lib\site-packages\PyInstaller-2.1-py2.7.egg\PyInstaller\loader\pyi_importers.py", line 270, in load_module
exec(bytecode, module.__dict__)
File "C:\Users\jammerxd\Desktop\VEXDisplayServer\build\test\out00-PYZ.pyz\wx._core", line 2, in <module>
File "c:\python27\lib\site-packages\PyInstaller-2.1-py2.7.egg\PyInstaller\loader\pyi_importers.py", line 270, in load_module
exec(bytecode, module.__dict__)
File "C:\Users\jammerxd\Desktop\VEXDisplayServer\build\test\out00-PYZ.pyz\wx._core_", line 15, in <module>
File "C:\Users\jammerxd\Desktop\VEXDisplayServer\build\test\out00-PYZ.pyz\wx._core_", line 7, in __load
AttributeError: 'FrozenImporter' object has no attribute 'archive'
py2exe生成一个exe但运行时错误R6034不断弹出一些关于没有正确加载C库的东西。 我该如何解决这个错误?我想要的只是从一个在IDLE中运行完美的wxPython脚本制作一个exe!
答案 0 :(得分:0)
解决方案是在我的应用程序清单中添加以下内容:
<dependency>
<dependentAssembly>
<assemblyIdentity
type="win32"
name="Microsoft.VC90.CRT"
version="9.0.30729.4918"
processorArchitecture="X86"
publicKeyToken="1fc8b3b9a1e18e3b"
language="*"
/>
</dependentAssembly>