【发布时间】:2018-12-07 06:05:46
【问题描述】:
我终于让 PyInstaller 构建了一个 exe 文件,但它没有运行。我一打开它,就会在一个对话框中看到它:
Runtime Error!
Program C:\.....\MCManager.exe
R6034
An application has made an attempt to load the C runtime library incorrectly.
Please contact the application's support team for more information.
这是我的规格:
# -*- mode: python -*-
a = Analysis(['MCManager.py'],
pathex=['C:\\Users\\Lucas\\Dropbox'],
hiddenimports=[],
hookspath=None)
pyz = PYZ(a.pure)
exe = EXE(pyz,
a.scripts,
a.binaries,
a.zipfiles,
a.datas,
name=os.path.join('dist', 'MCManager.exe'),
debug=False,
strip=None,
upx=True,
console=False,
icon='MCManager.ico')
app = BUNDLE(exe,
name=os.path.join('dist', 'MCManager.exe.app'))
我环顾四周,似乎没有人有同样的问题。
如果它改变了一些东西,这个脚本使用 wxPython。
【问题讨论】:
-
我在使用 pyinstaller 3.2 和 python 2.7.11 时遇到了同样的问题。回到 pyinstaller 3.1 解决了这个问题 :)
标签: python pyinstaller