[英]Pyqt5 is installed but gives dll failed to load error on import?
So, I tried to install PyQt5(version 5.7.1) for my miniconda3(python version 3.5.1) with pip install PyQt5
and it shows up when I try conda list
in console: 所以,我尝试使用pip install PyQt5
为我的miniconda3(python版本3.5.1)安装PyQt5(版本5.7.1),当我在控制台中尝试conda list
时它出现了:
But no pyqt5 program is running and when I import something like: 但是没有运行pyqt5程序,当我导入类似的东西时:
from PyQt5.QtWidgets import QApplication
its gives an ImportError
: 它给出了一个ImportError
:
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ImportError: DLL load failed: The specified module could not be found.
How can I fix this? 我怎样才能解决这个问题? Do I have to install C++ and Qt lib for C++ for this to work?? 我是否必须为C ++安装C ++和Qt lib才能使用? Please Help! 请帮忙!
I know it's an old question, i've found solution that worked for me, maybe it will be useful for somebody else. 我知道这是一个老问题,我发现解决方案对我有用,也许对其他人有用。
conda list
should contain pyqt
PyQt5
and qt
. 应该包含pyqt
PyQt5
和qt
。 If any of it are not there, you need to install it - run: 如果其中任何一个不存在,则需要安装它 - 运行:
conda install qt
, for example. 例如, conda install qt
。
I see in the question there is pyqt
and PyQt5
installed, but is there qt? 我在问题中看到安装了pyqt
和PyQt5
,但是有qt吗?
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.