【发布时间】:2022-01-15 08:53:04
【问题描述】:
我正在编写一个 python (3.9) 应用程序并希望使用 pyinstaller 分发可执行文件。我正在使用opencv-contrib-python==4.5.4.60、opencv-python==4.5.4.60 和numpy==1.21.4 的pipenv 环境中运行pyinstaller -w -F ...。
生成的可执行文件不断给我这个错误:
qt.qpa.plugin: Could not find the Qt platform plugin "xcb" in "/tmp/_MEIuynHyq/cv2/qt/plugins"
This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.
Aborted (core dumped)
许多帖子建议更改降级库。我尝试了这个和许多其他的东西都没有成功。提示,建议将不胜感激。
干杯
【问题讨论】:
标签: python qt opencv pyinstaller