Cuối cùng tôi đã nhận được PyInstaller để xây dựng một tập tin exe, nhưng nó không chạy. Ngay sau khi tôi mở nó, tôi có được điều này trong một hộp thoại:Lỗi Runtime 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.
Dưới đây là spec của tôi:
# -*- 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'))
Tôi đã nhìn xung quanh, và không ai dường như có vấn đề tương tự.
Nếu nó thay đổi mọi thứ, tập lệnh này sử dụng wxPython.
Tôi gặp vấn đề tương tự với pyinstaller 3.2 và python 2.7.11. Quay trở lại pyinstaller 3.1 giải quyết vấn đề :) – mba7