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:
Set Python environment variables;
Place the relevant packages in the third-party package folder of the Python installation directory, mine is E:\Python2.7\Lib\site-packages;
win+r Enter cmd to enter the console and enter the above directory
## 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!