[英]iPython/jupyter qtconsole fails to start in anaconda 2.4.0
After upgrading Anaconda3 (32-bit) from version 2.3.0 to 2.4.0 (by reinstalling Anaconda) on my Windows 7 64-bit machine, the iPython/jupyter qtconsole fails to start: when executing jupyter-qtconsole.exe
or jupyter-qtconsole-script.py
, the following error appears: 在Windows 7 64位计算机上将Anaconda3(32位)从2.3.0版本升级到2.4.0(通过重新安装Anaconda)后,iPython / jupyter qtconsole无法启动:执行jupyter-qtconsole.exe
或jupyter-qtconsole-script.py
,出现以下错误:
Traceback (most recent call last):
File "C:\Anaconda3\Scripts\jupyter-qtconsole-script.py", line 1, in <module>
from qtconsole.qtconsoleapp import main
File "C:\Anaconda3\lib\site-packages\qtconsole\qtconsoleapp.py", line 45, in <module>
from qtconsole.qt import QtCore, QtGui
File "C:\Anaconda3\lib\site-packages\qtconsole\qt.py", line 23, in <module>
QtCore, QtGui, QtSvg, QT_API = load_qt(api_opts)
File "C:\Anaconda3\lib\site-packages\qtconsole\qt_loaders.py", line 285, in load_qt
result = loaders[api]()
File "C:\Anaconda3\lib\site-packages\qtconsole\qt_loaders.py", line 192, in import_pyqt4
from PyQt4 import QtGui, QtCore, QtSvg
ImportError: DLL load failed: The specified procedure could not be found.
The qtconsole still works in an Anaconda 2.3.0 environment I created. 该qtconsole仍然可以在我创建的Anaconda 2.3.0环境中使用。 After comparing the .\\Lib\\site-packages\\PyQt4
directories of both the 2.3.0 and 2.4.0 environments, I noticed that the latter is missing all the Qt dll's and Qt directories. 比较2.3.0和2.4.0环境的.\\Lib\\site-packages\\PyQt4
目录之后,我注意到后者缺少所有Qt dll和Qt目录。 After a quick search, I discovered the Qt dll's are now located in C:\\Anaconda3\\Library\\bin
. 快速搜索后,我发现Qt dll现在位于C:\\Anaconda3\\Library\\bin
。 This directory is also set in the system PATH environment variable, but the problem is still there. 此目录也在系统PATH环境变量中设置,但问题仍然存在。 How to solve this issue? 如何解决这个问题?
After copying QtCore4.dll and QtGui4.dll from C:\\Anaconda3\\Library\\bin
to .\\Lib\\site-packages\\PyQt4
, as suggested here , I got the qtconsole going again. 将QtCore4.dll和QtGui4.dll从C:\\Anaconda3\\Library\\bin
复制到.\\Lib\\site-packages\\PyQt4
,按照此处的建议,我又重新启动了qtconsole。 However, this is not a very elegant solution. 但是,这不是一个很好的解决方案。
I have installed Anaconda_4.1.1.1 to resolve the issue. 我已经安装了Anaconda_4.1.1.1来解决此问题。 The 4.1.1.1 has a qt.conf file that configures Qt for windows. 4.1.1.1有一个qt.conf文件,用于配置Windows的Qt。 Adding this to help other users who are facing the same issue with latest Anaconda 4.3 version (though this post is a little old now) 添加此内容可帮助其他遇到相同问题的用户使用最新的Anaconda 4.3版本(尽管此帖子现在已经过时了)
Browse the below path for all the old anaconda versions: 浏览以下路径以查找所有旧的anaconda版本:
https://repo.continuum.io/archive/ https://repo.continuum.io/archive/
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.