Paraview and Python on Mac OSX
I've installed the binary distribution of paraview on OSX. When running this I can access the python interpreter from the Tools -> Python Shell. However I cannot figure out which libraries I need to add to PYTHONPATH in order to access VTK and Paraview functionality directly from Py开发者_StackOverflow社区thon.
Of course I could just compile the source distribution myself, but this would take a lot of time. Any ideas?
I am basing my answer on recently built Paraview 3.9.0 from the CVS. But you should be able to access ParaView directly from your regular Python if you add:
<Paraview-Bld-Directory>/Utilities/VTKPythonWrapping/site-packages
<Paraview-Bld-Directory>/bin
to your PYTHONPATH
variable.
Did this same approach fail to work when you tried the binary distribution? Sorry, but I wasn't sure how to interpret your comment about it working if you build by hand.
精彩评论