Home >Backend Development >Python Tutorial >How to install package vtk in python

How to install package vtk in python

(*-*)浩
(*-*)浩Original
2019-06-29 14:51:307070browse

Vtk, (visualization toolkit) is an open source free software system mainly used for three-dimensional computer graphics, image processing and visualization.

How to install package vtk in python

Vtk is designed and implemented based on object-oriented principles. Its core is built in C and contains approximately 250,000 lines of code and more than 2,000 classes. It also contains several conversion interfaces, so you can freely use vtk through various languages ​​​​such as Java, Tcl/Tk and Python. (Recommended learning: Python video tutorial)

Download dependency package

https://www.lfd.uci.edu/~gohlke/ pythonlibs/#vtk

Note: The versions of these 5 whl files are determined based on the python version and platform environment (win or linux, etc.), and the versions need to correspond to each other.

Put the above downloaded whl file into the D:\Programs\Python\Python36-32\Scripts directory

Use pip install XXX to install

Enter the Scripts directory under the python installation directory

Execute the installation command

How to install package vtk in python

##Test

import numpy as np
from tvtk.api import tvtk
from tvtkfunc import ivtk_scene, event_loop
from tvtk.common import configure_input
import segypy_tvtk as segypy
For more Python-related technical articles, please visit the

Python Tutorial column to learn!

The above is the detailed content of How to install package vtk in python. For more information, please follow other related articles on the PHP Chinese website!

Statement:
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