Home > Backend Development > Python Tutorial > python2.7 mayavi installation

python2.7 mayavi installation

巴扎黑
Release: 2017-06-23 11:47:37
Original
2729 people have browsed it

Tools: python2.7

Related packages: traits-4.6.0-cp27-cp27m-win32. whl, VTK-7.1.1-cp27-cp27m-win32.whl, mayavi-4.5.0+vtk71-cp27-cp27m-win32.whl

Download address:http://www.lfd.uci.edu/~gohlke/pythonlibs/

##Preparation before installation:

  1. Set Python environment variables;

  2. Place the relevant packages in the third-party package folder of the Python installation directory, mine is E:\Python2.7\Lib\site-packages;

  3. win+r Enter cmd to enter the console and enter the above directory

##                                                          eesdie: ・・・・・・・ install wheel

## 5. Download VCForPython27.msi and install

to start the installation. The installation sequence is as follows:

1: pip install traits-4.6.0-cp27-cp27m-win32.whl

## 2: pip install VTK-7.1.1-cp27- cp27m-win32.whl 

 3: pip install mayavi-4.5.0+vtk71-cp27-cp27m-win32.whl

After the installation is complete, enter Python and enter import mayavi.mlab. If there is no error, it means the installation is complete:

## 

Note 1: If LinkError: DLL load failed: The specified module cannot be found after the installation is completed.

## 1. Check whether mayavi and vtk versions match

 2. Re-download the latest version of vtk (matching the Python version) and the mayavi version matching this version, and reinstall

Note 2: You may need to install pyqt during the installation process

The above is the detailed content of python2.7 mayavi installation. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template