python - Pyinstaller 和 PyQt5 错误 "Cannot find existing PyQt5 plugin directories"

标签 python pyqt5 pyinstaller

我使用 Anaconda 5.3.0 和 Python 3.7。

制作了一个应用程序,我想使用Pyinstaller创建一个可执行文件,情况是我错过了以下错误:

Exception: Cannot find existing PyQt5 plugin directories Paths checked: C:/Miniconda3/conda-bld/qt_1535195524645/_h_env/Library/plugins

最佳答案

根据this GitHub error report ,主要有两种解决方案:

  • 运行pip install PyQt5来安装模块
  • 包含标志 --exclude-module PyQt5 以防止 pyinstaller 尝试包含它

后者似乎对我有用。

关于python - Pyinstaller 和 PyQt5 错误 "Cannot find existing PyQt5 plugin directories",我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/53370225/

相关文章:

python - 可选信号参数

python - Pyinstaller 不能很好地与 ImageTk 和 Tkinter 配合使用

python - 如何从数据库生成每日/每周/每月/每年汇总值

python - Python drawContours方法在所应用的图像上没有任何内容(OpenCV)

python - 如何以24小时时钟格式制作qt Designer的QDateTimeEdit小部件

使用 PyInstaller 将 Python Scrapy 转换为 EXE 文件

python 特殊情况无法导入WMI

python - 在 Python 中实现 Karatsubas 乘法算法

Python 笔记本 - 导入带有两个字符分隔符的数据文件会导致错误

python - RuntimeError : the sip module implements API v11. 0 到 v11.2 但 PyQt5.QtCore 模块需要 API v11.3