OS: Linux的Kubuntu的14.4.5如何安裝Mayavi Trait後端?
的Python:的Python 3.5.2 ::連續分析,公司
我試圖Mayavi的安裝到我的蟒蛇環境:
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
與解釋:
Make sure that you have either the TraitsBackendWx or the TraitsBackendQt projects installed. If you installed Mayavi with easy_install, try easy_install . easy_install Mayavi[app] will also work.
If you performed a source checkout, be sure to run 'python setup.py install' in Traits, TraitsGUI, and the Traits backend of your choice.
Also make sure that either wxPython or PyQT is installed. 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與pip install mayavi
安裝它,但只造成在消息是「需求已經滿足」,其中之一是
Requirement already satisfied: traits in /anaconda2/envs/myenv/lib/python3.5/site-packages (from mayavi)
怎麼辦?
'conda install -y pyside'給出'規範被發現有衝突' - 這可能是因爲我使用Python 3.5。該怎麼辦? – Make42
@ Make42你可以用'conda info'的輸出更新你的問題嗎? –
@ Make42在一個新的conda python 3環境中,我能夠運行這個例子,只需要按照答案中提到的那樣安裝軟件包。你能否在一個單獨的環境中嘗試這個,如果這對你有用,請更新? –