且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

PyQt5:DLL加载失败:找不到指定的模块

更新时间:2023-02-24 08:17:59

我得到了自己问题的答案.

I got the answer to my own question.

当我尝试通过安装程序安装它时,它无法正常运行.然后,我卸载了安装程序,并在命令行pip uninstall pyqt5中运行了代码,然后通过pip pip install pyqt5重新安装了该代码.

When I tried to install it by setup, it did not ran properly. Then I uninstalled the setup and also ran the code in command line pip uninstall pyqt5 and then reinstalled by pip pip install pyqt5.

然后它可以完美运行,但是通过pip进行安装不会提供任何示例,因此可以将安装程序安装在任何其他目录中并将示例复制到PyQt5文件夹中.完成!

Then it perfectly ran, but by installing with pip it doesn't provide any examples so for that install the setup in any other directory and copy the examples in the PyQt5 folder. Done!

我认为设置中可能存在一些错误.

I think there may be some bug in the setup.