我終於得到PyInstaller來建立一個exe文件,但它沒有運行。當我打開它,我在一個對話框中得到這樣的:PyInstaller運行時錯誤? (R6034)
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解決了這個問題:) – mba7