PyQt built on Windows: DLL load failed: The specified procedure could not be found

≯℡__Kan透↙ 提交于 2019-12-24 10:53:57

问题


I've tried to build PyQt from sources (with binary Qt 5.8.0 downloaded) on my Windows 7x64.

I did it by this tutorial: https://stackoverflow.com/a/40779370/2726900

I've entered Visual Studio 2015 Command Prompt, activated vcvarsall.bat amd64, activated qtenv2.bat.

Than I configured, built and installed SIP (no errors). Than I configured PyQt (just added --sip C:/Python35/sip.exe) and successfully built and installed PyQt.

The filed like QtCore.pyi, QtCore.pyd, QtGui.pyi, QtGui.pyd and so on really appeared in my site-packages/PyQt5 folder.

Bug when I tried to import some modules from my installed PyQt5, it failed.

>>> 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.

Cannot you tell me, how can I fix it?

来源:https://stackoverflow.com/questions/44710033/pyqt-built-on-windows-dll-load-failed-the-specified-procedure-could-not-be-fou

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!