How to 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 he says that it requires python 2.7.

+3


source to share


2 answers


Good luck with the package mayavi

available on other channels, search the Anaconda website .

As of today, the one supported on the channel is conda-forge

compatible with python 3.5 and 3.6. To install it,

conda install -c conda-forge mayavi

      

If mayavi

not working with



ImportError: Could not import backend for traits

      

it could be because qt is not installed or that qt5 is installed - in which case it needs to be downgraded

conda install pyqt=4

      

+7


source


Here's what you can try:

If you have Visual Studio and native Python development tools installed.

In Anaconda3 you can get VTK7.1.x from clinical graphics

conda install -c clinicalgraphics vtk

      

Open VS20xx x64 virtual command line, set your PATH correctly for python: for example



C:\Anaconda3\Scripts\activate.bat C:\Anaconda3

      

Then install mayavi using pip from source.

pip install mayavi

      

It compiles successfully with VS2017 and Python 3.6 on Windows 10.

+2


source







All Articles