<p>mayavi 4.7.1 似乎不适用于 Python 3.9</p>

创建于 2020-07-09  ·  3评论  ·  资料来源: enthought/mayavi

这与https://github.com/enthought/mayavi/issues/939以及 vtk 8 轮不适用于 Python 3.9 的事实直接相关。 我不确定 vtk 8 轮子是否不能为 Python 3.8 构建或尚未为 Python 3.8 构建。

最有用的评论

这对我来说已经解决了。 这是如何完成的:

  • 首先安装VTK 9.0。 对于 mac 就像brew install vtk
  • $ git clone https://github.com/enthought/mayavi.git
  • mayavi/requirements.txt ,删除vtk
  • mayavi/mayavi/__init__.py ,从__requires__删除'vtk' __requires__

然后按照指导完成安装:

$ pip install -r requirements.txt
$ pip install PyQt5  # replace this with any supported toolkit
$ python setup.py install  # or develop

所有3条评论

有一个 VTK 8.2 源补丁可以与 Python 3.8(可能还有 Python 3.9)兼容。 修复程序已经应用于 VTK 9.0 源代码(似乎没有 VTK 8.3 版本正在开发中)。 但是,我知道 Mayavi 与 VTK 9.0 的兼容性问题已在此处单独报告,并且正在处理中(谢谢!)。

请参阅 VTK 问题(以及其中的补丁下载链接): https :

我可以确认此补丁使我能够针对 Python 3.8.3(以及 QT5.14.2、PyQt5-5.13.2、NumPy 1.19.0/MKL2020.1)构建 VTK 8.2,并且它适用于 Mayavi 4.7.1。 在 Ubuntu 16.04、18.04、20.04 和 MacOSX Catalina 10.15.5 上测试(没有在 Windows 10 本机上测试,只有 WSL 2 运行良好)。

这应该在最新的master修复

这对我来说已经解决了。 这是如何完成的:

  • 首先安装VTK 9.0。 对于 mac 就像brew install vtk
  • $ git clone https://github.com/enthought/mayavi.git
  • mayavi/requirements.txt ,删除vtk
  • mayavi/mayavi/__init__.py ,从__requires__删除'vtk' __requires__

然后按照指导完成安装:

$ pip install -r requirements.txt
$ pip install PyQt5  # replace this with any supported toolkit
$ python setup.py install  # or develop

此页面是否有帮助?
0 / 5 - 0 等级

相关问题

relyativist picture relyativist  ·  16评论

thoth291 picture thoth291  ·  10评论

ktavabi picture ktavabi  ·  15评论

Make42 picture Make42  ·  7评论

anntzer picture anntzer  ·  7评论