python37 装vtk,出现。。。is not a supported wheel on this platform.错误

由于国内的镜像里没有vtk,所以直接用conda安装会非常慢,推荐下载whl文件后使用pip 安装。

提供一个下载VTK的whl文件的网址:https://www.lfd.uci.edu/~gohlke/pythonlibs/#vtk

我的版本是python37

下载之后运行

pip install "D:\PythonProjects\VTK-8.1.2-cp37-cp37m-win_amd64.whl"

出现了标题所显示的错误。

所以版本需要确认python版本。

这个错误是因为版本不匹配

python37 装vtk,出现。。。is not a supported wheel on this platform.错误

这样可以看出我电脑适合的版本是

python37 装vtk,出现。。。is not a supported wheel on this platform.错误

而并不是看起来的amd64.

python37 装vtk,出现。。。is not a supported wheel on this platform.错误