Py2exe:exe 已创建,但如果您运行它,您会收到运行时错误 R6034 [英] Py2exe: the exe is created but if you run it you get a Runtime error R6034

查看:32
本文介绍了Py2exe:exe 已创建,但如果您运行它,您会收到运行时错误 R6034的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经在 wxpython 中创建了一个应用程序,我想让它可以执行.一切顺利.所有需要的 dll 都在那里,但是当我尝试运行我的 exe 时,我收到以下错误:

I have made an application in wxpython, and I want to make it executable. All goes ok. All dlls needed are there, but when I try to run my exe I get the following error:

运行时错误 R6034,应用程序尝试加载 C运行时库不正确.

Runtime error R6034, An application has made an attempt to load C runtime library incorrectly.

推荐答案

我遇到了同样的问题,我通过将此文本添加到 setup.py 中的manifest_template"字符串来修复它(高级示例使用它)

I had this same problem, I fixed it by ADDING this text to the "manifest_template" string in setup.py (the advanced sample uses it)

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

这篇关于Py2exe:exe 已创建,但如果您运行它,您会收到运行时错误 R6034的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆