pyinstaller:LSOpenURLsWithRole()失败,错误-10108

时间:2020-03-02 02:05:11

标签: python pyinstaller

我使用PyInstaller 3.6打包了PyQt5程序,并且打包过程显示错误: /Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/zmq/backend/cffi/pycache/_cffi_ext.c:269:10:致命错误: 找不到“ zmq.h”文件

enter image description here

但是仍然可以生成可执行文件:exam.app,双击该文件,无法将其打开,无法使用终端打开它,并且会报告错误:LSOpenURLsWithRole()失败,错误-10108 /用户/ wenlong / GitHub /exam_demo/dist/exam.app。

enter image description here

尝试了两个版本的PyInstaller 3.6 / 3.5,结果是相同的。 环境:Python 3.7.6 macOS 10.13.6

对不起,这个问题怎么解决?

0 个答案:

没有答案