我已经使用命令安装了pyqt5
pip3 install pyqt5Successfully installed pyqt5-5.8.1
我的Python版本如下:
Python 3.5.2 |Anaconda custom (64-bit)| (default,Jul 5 2016,11:41:13) [MSC v.1900 64 bit (AMD64)] on win32
导入错误如下:
from PyQt5.QtWidgets import QApplicationTraceback (most recent call last):file "<stdin>",line 1,in <module>importError: DLL load Failed: The specifIEd module Could not be found.
谢谢&问候
解决方法 这是因为缺少python3.dll(存根dll,重新导出python3x.dll函数,因此一个版本的扩展可以适用于多个版本的python).如果您的Python发行版没有捆绑python3.dll,您可以尝试使用WinPython(https://winpython.github.io/).
至少2017/04/01版本应该有它.
1)下载WinPython(‘零’版本足够;必须相同“主版本” – 3.5 / 3.6 – 和“位数” – 32/64 – 作为你的Python !!!).
2)解压缩到某个临时目录,取python3.dll并将其粘贴到python目录旁边的python3x.dll中.
3)享受QT工作
总结以上是内存溢出为你收集整理的python – 导入PyQt5时DLL加载失败全部内容,希望文章能够帮你解决python – 导入PyQt5时DLL加载失败所遇到的程序开发问题。
如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)