Search code examples
pythonpython-3.xpipvtk

Problems installing vtk Python


I can't install vtk in python project with this command:

python -m pip install vtk

I'm getting this error:

ERROR: No matching distribution found for vtk
ERROR: Could not find a version that satisfies the requirement vtk (from versions: none)

I tried to update my pip package :

python -m pip install --upgrade pip

I tried to install the .whl file directly from the project directory:

python -m pip install .\vtk-9.1.0-cp39-cp39-win_amd64.whl

I tried all vtk .whl file versions but I keep getting this error:

ERROR: vtk-9.1.0-cp37-cp37m-win_amd64.whl is not a supported wheel on this platform.

PS: I use Python 3.10.0


Solution

  • It looks like a problem that was reported 3 months ago. My recommendation is using python 3.9 for vtk, until it is resolved. I verified it works fine using python 3.9.10