Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I install mayavi on Windows for python 3 via conda?

I have a python 3 virtual environment managed by conda on Windows. I want to install the mayavi package via

conda install mayavi

but it says it requires python 2.7.

like image 599
P-Gn Avatar asked Dec 13 '25 05:12

P-Gn


1 Answers

Have your luck with a mayavi package available on other channels, by searching on the Anaconda website.

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

If mayavi fails with an

ImportError: Could not import backend for traits

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
like image 134
P-Gn Avatar answered Dec 14 '25 19:12

P-Gn



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!