1

在我的 Windows 7 64 位机器上将 Anaconda3(32 位)从 2.3.0 版本升级到 2.4.0(通过重新安装 Anaconda)后,iPython/jupyter qtconsole 无法启动:执行jupyter-qtconsole.exeor时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.

qtconsole 在我创建的 Anaconda 2.3.0 环境中仍然有效。在比较了.\Lib\site-packages\PyQt42.3.0 和 2.4.0 环境的目录后,我注意到后者缺少所有 Qt dll 和 Qt 目录。经过快速搜索,我发现 Qt dll 现在位于C:\Anaconda3\Library\bin. 这个目录也是在系统PATH环境变量中设置的,但是问题依旧。如何解决这个问题?

4

2 回答 2

2

在将 QtCore4.dll 和 QtGui4.dll 从复制C:\Anaconda3\Library\bin到之后,按照这里.\Lib\site-packages\PyQt4的建议,我让 qtconsole 再次运行。然而,这不是一个非常优雅的解决方案。

于 2015-11-30T21:57:50.733 回答
-1

I have installed Anaconda_4.1.1.1 to resolve the issue. The 4.1.1.1 has a qt.conf file that configures Qt for windows. 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)

Browse the below path for all the old anaconda versions:

https://repo.continuum.io/archive/

于 2017-02-03T14:01:46.547 回答