PyQt: DLL load failed while importing QtWidgets: 找不到指定的模块

1. 环境

系统: win11

Anaconda: 2021.11

Python: 3.9.12

Pyinstaller: 5.4.1

2. PyCharm 中运行正常,Pyinstaller 打包成exe后,会报以下错误:

        DLL load failed while importing QtWidgets: 找不到指定的模块

3. 解决办法:

        Pyinstaller降级到5.1

你可能感兴趣的:(PyQt,pyqt)