Count the various problems that occur when installing mayavi with anaconda

During this period of time, we need to use mayavi for scientific data processing, so we need to use the mayavi library, but the instructions on the official website say: if anaconda is installed, it comes with various scientific libraries, but in practice, mayavi is not found.

Official site navigation: mayavi

The main installation method: download the corresponding package from the third-party library center: the corresponding link

Environment: win10+python2.7

-------------------------------------------------- --------------Pro test: In this environment, the installation failed---------------------------- -----------------------

They include:

  1. VTK (download in the third-party library center)
  2. numpy (included in the system)
  3. setuptool (system built-in)
  4. PySide (download in the third-party library center)
  5. configobj (download from the third-party library center)
  6. Envisage (download in the third-party library center)
  7. mayavi (download in the third-party library center)

All of the above library installations must be in the corresponding order, because there are corresponding dependencies between the various packages.

Here is my installation method

pip  install "the path of ***.whl"

 

But unfortunately, when all the library files have been installed,

After testing with a simple test case

from mayavi import mlab

x = [[-1, 1, 1, -1, -1], [-1, 1, 1, -1, -1]]
y = [[-1, -1, -1, -1, -1], [1, 1, 1, 1, 1 ]]
z = [[1, 1, -1, -1, 1], [1, 1, -1, -1, 1 ]]

s = mlab.mesh(x, y, z)
mlab.show()

The error is as follows:

 

It may be because of the computer system, and it is also someone else's environment. There is no problem in installing this method, so I can only abandon the system.

After looking for a variety of methods to no avail, I changed the linux system, and then barely solved the problem.

 

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325318569&siteId=291194637