from mayavi import mlab
from tvtk.tools import visual
>/Users/me/Library/Enthought/Canopy/edm/envs/User/lib/python3.5/si>te->packages/pyface/base_toolkit.py in import_toolkit(toolkit_name, >entry_point)
> 225 msg = msg.format(entry_point, toolkit_name)
> 226 logger.info(msg)
>--> 227 raise RuntimeError(msg)
>RuntimeError: No pyface.toolkits plugin could be loaded for qt4
出于许可的原因,Canopy for Python 3.x不附带PyQt。请从Canopy Package Manager安装PyQt,然后重试。有关更多信息,请搜索pyqt python 3
的Enthought知识库,它将为您提供本文的链接:"Python 3 in Canopy 2 - 'No module named PyQt4' error"。