PyInstaller运行时错误?(R6034)

2024-06-02 08:32:01 发布

您现在位置:Python中文网/ 问答频道 /正文

我终于让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。


Tags: 文件thepathnamenonefalseappapplication