您的位置:首页 > 编程语言 > Python开发

打包python为可执行文件时报错R6034解决方案

2016-12-12 00:37 162 查看
R6034 指的是:”An application has made an attempt to load the C runtime library incorrectly. Please contact the application's support team for more information“.

网上的解决办法很多,但是比较乱,也没有介绍是在什么应用中发生的R6034问题。
今天给大家介绍一个,在运行Python时候遇到的R6034的解决办法。

方法转自 http://stackoverflow.com/questions/14552348/runtime-error-r6034-in-embedded-python-application
不喜欢看英文的朋友可以看下文:
1. 下载 Process Explorer并安装 http://technet.microsoft.com/en-ca/sysinternals/bb896653.aspx
2. 打开你的应用,会显示R6034的问题
3. 打开Process Explorer。在主菜单”View“中选择”Lower Pane View“并且选择”DLLS“
4. 在你运行的程序中找”msvcr??.dll“。关键就是这个文件。如果它的位置是:"winsxs" 那就是对的,如果不是,找到这个文件的路径,删除它。
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: