Problem installation vtk package (pip & wheel) MacOSX

Hi there,

I’m hoping you could help me with installing vtk package for Python on my MacOSX. (vtk · PyPI)

The command-line installation doesn’t seem to work:

$ pip install vtk
ERROR: Could not find a version that satisfies the requirement vtk
ERROR: No matching distribution found for vtk

Also when downloading the wheel:

$ pip3 install vtk-9.0.1-cp38-cp38-macosx_10_9_x86_64.whl`
ERROR: vtk-9.0.1-cp38-cp38-macosx_10_9_x86_64.whl is not a supported wheel on this platform.

I am on a MacOSX 10.15.4, my Python version is 3.9, my pip version is 21.0.1:

$ pip --version
pip 21.0.1 from /usr/local/lib/python3.9/site-packages/pip (python 3.9)

I am unfamiliar with where to look next, is there anyone who could provide me help? Thanks in advance!

The wheel you downloaded is for Python 3.8 only. The latest version of vtk only has wheels for Pythons 3.5 through 3.8, and there is no sdist uploaded. Unless installing & using Python 3.8 instead is an option for you, your only recourse is likely to be contacting the vtk maintainers and asking for a 3.9 wheel.

Yes thanks so much! That makes sense actually. Could it work within a virtual environment? Otherwise I’ll indeed downgrade to 3.8.

Only if that virtual environment is using Python 3.8.

I am having the same issues with python 3.9.2 on my mac.
ERROR: Could not find a version that satisfies the requirement vtk

ERROR: No matching distribution found for vtk