我曾尝试在我的Windows7x64上从源代码(下载了二进制Qt 5.8.0 )构建PyQt。
我是通过这个教程做到的:https://stackoverflow.com/a/40779370/2726900
我已经进入Visual Studio2015命令提示符,激活了vcvarsall.bat amd64,激活了qtenv2.bat。
而不是配置、构建和安装SIP (没有错误)。然后我配置了PyQt (刚刚添加了--sip C:/Python35/sip.exe)并成功构建和安装了PyQt。
像QtCore.pyi,QtCore.pyd,QtGui.pyi,QtGui.pyd等等这样的文件确实出现在我的site-packages/PyQt5文件夹中。
当我尝试从我安装的PyQt5中导入一些模块时,它失败了。
>>> from PyQt5 import QtGui
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ImportError: DLL load failed: The specified procedure could not be found.你不能告诉我,我怎么才能修复它?
发布于 2020-09-01 22:50:30
python -m pip install --upgrade pyqt5https://stackoverflow.com/questions/44710033
复制相似问题