Caffe:導入caffePython-PyQt failed

 

在另外一臺電腦上使用caffe python版本,顯示python

         Backend Qt5Agg is interactive backend. Turning interactive mode on.
         Failed to enable GUI event loop integration for 'qt5'
app

         ...................eclipse

         PyQt4 failed...oop


緣由,沒有安裝PyQt4,而使用了PyQt5。ui


下載個PyQt4文件,安裝完成。3d

出現:blog

Backend Qt5Agg is interactive backend. Turning interactive mode on.
Failed to enable GUI event loop integration for 'qt5'
Traceback (most recent call last):
  File "D:\Works\Android\eclipse\plugins\org.python.pydev_5.3.0.201610121612\pysrc\_pydev_bundle\pydev_console_utils.py", line 565, in do_enable_gui
    enable_gui(guiname)
  File "D:\Works\Android\eclipse\plugins\org.python.pydev_5.3.0.201610121612\pysrc\pydev_ipython\inputhook.py", line 528, in enable_gui
    return gui_hook(app)
  File "D:\Works\Android\eclipse\plugins\org.python.pydev_5.3.0.201610121612\pysrc\pydev_ipython\inputhook.py", line 215, in enable_qt5
    app, inputhook_qt5 = create_inputhook_qt5(self, app)
  File "D:\Works\Android\eclipse\plugins\org.python.pydev_5.3.0.201610121612\pysrc\pydev_ipython\inputhookqt5.py", line 84, in create_inputhook_qt5
    from PyQt5 import QtWidgets
  File "D:\Works\Android\eclipse\plugins\org.python.pydev_5.3.0.201610121612\pysrc\_pydev_bundle\pydev_import_hook.py", line 21, in do_import
    module = self._system_import(name, *args, **kwargs)
ImportError: DLL load failed: �Ҳ���ָ���ij���
ip


環境優先使用了PyQt5。get

1.進入 C:\Works\Anaconda2\Lib\site-packages 目錄,刪除PyQt5;input

導入成功;

可是在使用時候仍然斷定API爲PyQt5,使用失敗。


2.卸載Matplotlib          pip uninstall Matplotlib

3.重裝Matplotlib          pip install Matplotlib

使用成功。

PlaceNet205.

相關文章
相關標籤/搜索