无法检测到VTK Python



VTK在我更新它之前工作得很好。我确保打开了所有的python链接等。

现在,当我运行mayavi2时,我收到:

dustin@dustin:~$ mayavi2
Traceback (most recent call last):
  File "/usr/local/bin/mayavi2", line 9, in <module>
    load_entry_point('mayavi==4.3.0', 'console_scripts', 'mayavi2')()
  File "/usr/local/lib/python2.7/dist-packages/pkg_resources.py", line 343, in load_entry_point
    return get_distribution(dist).load_entry_point(group, name)
  File "/usr/local/lib/python2.7/dist-packages/pkg_resources.py", line 2309, in load_entry_point
    return ep.load()
  File "/usr/local/lib/python2.7/dist-packages/pkg_resources.py", line 2015, in load
    entry = __import__(self.module_name, globals(),globals(), ['__name__'])
  File "/usr/local/lib/python2.7/dist-packages/mayavi/scripts/mayavi2.py", line 457, in <module>
    raise ImportError(msg)
ImportError: libvtkCommonPythonD.so.5.10: cannot open shared object file: No such file or directory
________________________________________________________________________________
Do you have vtk installed properly?

我该如何解决这个问题?

我找到了文件libvtkCommonPythonD.so.5.10并将其添加到添加到LD库路径

export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/lib/vtk-5.10

相关内容

  • 没有找到相关文章

最新更新