本文介绍了如何通过conda在Windows上为python 3安装mayavi?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我有一个由Windows上的conda管理的python 3虚拟环境。我想通过以下方式安装mayavi软件包:
I have a python 3 virtual environment managed by conda on Windows. I want to install the mayavi package via
conda install mayavi
,但它说它需要python 2.7。
but it says it requires python 2.7.
推荐答案
祝您好运并通过。
Have your luck with a mayavi
package available on other channels, by searching on the Anaconda website.
截至今天,该内容仍保存在 conda上-forge
通道与python 3.5和3.6兼容。要安装它,
As of today, the one maintained on the conda-forge
channel is compatible with python 3.5 and 3.6. To install it,
conda install -c conda-forge mayavi
如果 mayavi
失败,并且
ImportError: Could not import backend for traits
这可能是因为未安装qt或已安装qt5-在这种情况下,它需要降级
it may be because qt is not installed or that qt5 is installed -- in that case it needs to be downgraded
conda install pyqt=4
这篇关于如何通过conda在Windows上为python 3安装mayavi?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!