试图从enthought mayavi模块导入mlab - 得到“RuntimeError:没有pyface.toolkits插件可以为qt4加载”

问题描述 投票:0回答:1

The program starts with:-

from mayavi import mlab
from tvtk.tools import visual

and ends up with this message

>/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 
enthought
1个回答
0
投票

出于许可的原因,Canopy for Python 3.x不附带PyQt。请从Canopy Package Manager安装PyQt,然后重试。有关更多信息,请搜索pyqt python 3的Enthought知识库,它将为您提供本文的链接:"Python 3 in Canopy 2 - 'No module named PyQt4' error"

© www.soinside.com 2019 - 2024. All rights reserved.