PyInstaller FrozenImporter 没有属性存档

PyInstaller FrozenImporter has no attribute archive

Pyinstaller 和 py2exe 似乎总是在尝试 运行 时产生错误。即使是弹出空白 window 的简单测试程序也无法 运行.

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 库的内容。 我该如何解决这个错误?我想要的只是从 wxPython 脚本制作一个 exe,它 运行在 IDLE 中完美无缺!

解决方案是在我的应用程序清单中添加以下内容:

<dependency>
<dependentAssembly>
    <assemblyIdentity
        type="win32"
        name="Microsoft.VC90.CRT"
        version="9.0.30729.4918"
        processorArchitecture="X86"
        publicKeyToken="1fc8b3b9a1e18e3b"
        language="*"
    />
</dependentAssembly>