Failed to run `pip install vtk'.

Hi,

I try to install vtk from pypi but failed as following:

$ python -V
Python 3.8.3
$ pip install vtk
Looking in indexes: https://pypi.tuna.tsinghua.edu.cn/simple
ERROR: Could not find a version that satisfies the requirement vtk (from versions: none)
ERROR: No matching distribution found for vtk

Any hints for solving this problem?

Regards

I suspect you’re using a 32-bit Python. We only provide 64-bit wheels.

I had the same problem - I was trying to install this from within a venv python environment. I fixed this by installing it as a system library, and then rebuilding my venv space with the --system-site-packages option.

I see that there is also a pip library vext.vtk that may allow you to retro-actively add it to a venv environment.

Euan de Kock via VTK noreply@discourse.vtk.org 于2020年6月12日周五 下午3:43写道:

I had the same problem - I was trying to install this from within a venv python environment. I fixed this by installing it as a system library, and then rebuilding my venv space with the --system-site-packages option.

See here for more details on the reason for this problem:

I see that there is also a pip library vext.vtk that may allow you to retro-actively add it to a venv environment.

Thanks for your above note. I’ll give a try.