Reputation: 134
I tried to use pip install vtk
but I faced an error.
https://i.sstatic.net/piSTo.png
"ERROR: Could not find a version that satisfies the requirement vtk (from versions: none) ERROR: No matching distribution found for vtk"
I tried:
and also used Anaconda, I installed it properly but still not working in python and is not identified in cmd by vtk --version
.
Help me, please Thanks
Upvotes: 1
Views: 8046
Reputation: 58
Each version of Python supports some special versions of VTK. As you are using Python 3.8 you should use VTK versions below 9.0.
Upvotes: 2
Reputation: 31
Able to install vtk on python3.8 directly from the source. Follow below commands, it is a bit time taking to build the wheel but would definitely install vtk. Download the version you want to install, in my case i installed the latest 9.1.0 from https://vtk.org/download/
//extract the downloaded file.
mkdir VTK_BUILD
cd VTK_BUILD
cmake -GNinja -DVTK_WHEEL_BUILD=ON -DVTK_WRAP_PYTHON=ON {vtk source path}
ninja
python3 setup.py bdist_wheel
copy path to VTK_BUILD add vtk build paths to the bashrc file to set the path.
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:{copied build path}
export PYTHONPATH=$PYTHONPATH:{copied build path}
This should install vtk.
source link: https://gitlab.kitware.com/vtk/vtk/-/blob/master/Documentation/dev/build.md#building-vtk
Upvotes: 1
Reputation: 416
Installation on python 3.8 is successful using conda
conda install vtk
Upvotes: 1
Reputation: 740
To update this answer VTK now has Python 3.8 support under the 9.0 version has just been released VTK 9.0 download if you download and install the whl from the link provided.
Upvotes: 4