操作系统:Linux Kubuntu 14.4.5
Python版本:Python 3.5.2 :: Continuum Analytics, Inc.
我尝试将Mayavi安装到我的Anaconda环境中:
conda install -c menpo mayavi=4.5.0
conda install -c anaconda wxpython=3.0.0.0
conda install pyqt
conda install qt
但是当我尝试运行来自http://docs.enthought.com/mayavi/mayavi/auto/example_surface_from_irregular_data.html的示例时,我收到了错误信息。
ImportError: Could not import backend for traits
带有以下解释:
确保您已安装TraitsBackendWx或TraitsBackendQt项目。如果您使用easy_install安装了Mayavi,请尝试使用easy_install . easy_install Mayavi[app]也将起作用。
如果您执行了源代码检出,请确保在Traits、TraitsGUI和所选的Traits后端中运行'python setup.py install'。
还要确保安装了wxPython或PyQT。wxPython:http://www.wxpython.org/ PyQT:http://www.riverbankcomputing.co.uk/software/pyqt/intro
我搜索了网络并尝试找到任何设置,但没有找到任何东西。
我从http://docs.enthought.com/mayavi/mayavi/installation.html?highlight=installation得知,我可以通过pip install mayavi
来安装它,但这只会导致“要求已经满足”的消息,其中包括
Requirement already satisfied: traits in /anaconda2/envs/myenv/lib/python3.5/site-packages (from mayavi)
该怎么办?
conda install -y pyside
出现了specifications were found to be in conflict
的错误提示,这可能是因为我使用的是 Python 3.5 版本。该怎么办? - Make42conda info
的输出结果? - Nehal J Waniconda install -c conda-forge pyside=1.2.4
安装 PySide。最后一行命令ETS_TOOLKIT=qt4 python /path/to/mayavi-example.py
有什么作用? - Make42