运行morphotester.py时ipython中的pyside pyqt4冲突

运行morphotester.py时ipython中的pyside pyqt4冲突,ipython,pyqt4,pyside,canopy,Ipython,Pyqt4,Pyside,Canopy,尝试在canopy中运行包时,当我运行包时会导致冲突,因为pyside似乎是默认值,而包调用pyqt4,如何在Ipython中禁用pyside,或者以其他方式处理此问题 %run "C:\Users\Tom\Desktop\morphotester-master\morphotester-master\Morpho.py" C:\Users\Tom\AppData\Local\Enthought\Canopy\User\lib\site-packages\matplotlib\__init__.

尝试在canopy中运行包时,当我运行包时会导致冲突,因为pyside似乎是默认值,而包调用pyqt4,如何在Ipython中禁用pyside,或者以其他方式处理此问题

%run "C:\Users\Tom\Desktop\morphotester-master\morphotester-master\Morpho.py"
C:\Users\Tom\AppData\Local\Enthought\Canopy\User\lib\site-packages\matplotlib\__init__.py:1350: UserWarning:  This call to matplotlib.use() has no effect
because the backend has already been chosen;
matplotlib.use() must be called *before* pylab, matplotlib.pyplot,
or matplotlib.backends is imported for the first time.

  warnings.warn(_use_error_msg)
WARNING:traits.has_traits:DEPRECATED: traits.has_traits.wrapped_class, 'the 'implements' class advisor has been deprecated. Use the 'provides' class decorator.
---------------------------------------------------------------------------
ImportError                               Traceback (most recent call last)
C:\Users\Tom\Desktop\morphotester-master\morphotester-master\Morpho.py in <module>()
     25 from mayavi.core.ui.api import MlabSceneModel
     26 from tvtk.pyface.scene_editor import SceneEditor
---> 27 from PyQt4 import QtGui
     28 
     29 class MainWidget(QtGui.QWidget):

C:\Users\Tom\AppData\Local\Enthought\Canopy\App\appdata\canopy-1.6.2.3262.win-x86_64\lib\site-packages\IPython\external\qt_loaders.pyc in load_module(self, fullname)

ImportError: 
    Importing PyQt4 disabled by IPython, which has
    already imported an Incompatible QT Binding: pyside
%运行“C:\Users\Tom\Desktop\morphotester master\morphotester master\Morpho.py”
C:\Users\Tom\AppData\Local\enthund\Canopy\User\lib\site packages\matplotlib\\uuuuu init\uuuuuuuuuuuupy:1350:UserWarning:调用matplotlib.use()无效
因为已经选择了后端;
matplotlib.use()必须在*pylab、matplotlib.pyplot、,
或matplotlib.backends首次导入。
警告。警告(使用错误消息)
警告:traits.has_traits:DEPRECATED:traits.has_traits.wrapped_类,“implements”类顾问已被弃用。使用“提供”类装饰器。
---------------------------------------------------------------------------
ImportError回溯(最近一次呼叫最后一次)
C:\Users\Tom\Desktop\morphotester master\morphotester master\Morpho.py in()
25从mayavi.core.ui.api导入MlabSceneModel
26从tvtk.pyface.scene_编辑器导入SceneEditor
--->27从PyQt4导入QtGui
28
29类MainWidget(QtGui.QWidget):
C:\Users\Tom\AppData\Local\enthught\Canopy\App\AppData\Canopy-1.6.2.3262.win-x86\u 64\lib\site packages\IPython\external\qt\u loaders.pyc加载模块(self,全名)
进口恐怖主义:
导入IPython禁用的PyQt4,它已
已导入不兼容的QT绑定:pyside

在Canopy/Edit/Preferences/Python中,禁用Pylab模式,或将其设置为“内联(SVG)”

该软件包来自