[英]trying to import mlab from the enthought mayavi module - getting “ RuntimeError: No pyface.toolkits plugin could be loaded for qt4”
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
For licensing reasons, Canopy for Python 3.x does not ship with PyQt. 出于许可原因,PyQt不附带适用于Python 3.x的Canopy。 Please install PyQt from the Canopy Package Manager, then try again.
请从Canopy软件包管理器安装PyQt,然后重试。 For more information, search the Enthought Knowledge base for
pyqt python 3
, which will give you a link to this article: "Python 3 in Canopy 2 - 'No module named PyQt4' error" . 有关更多信息,请在Enthought知识库中搜索
pyqt python 3
,这将为您提供到本文的链接: “ Canopy 2中的Python 3-'No module named PyQt4'error” 。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.