Python 2.7 在终端中执行python脚本或在mac中执行pvpython

Python 2.7 在终端中执行python脚本或在mac中执行pvpython,python-2.7,paraview,Python 2.7,Paraview,我安装了ParaView 5.7并用它录制了一个python脚本。 在Windows10中,我可以打开一个pvpython shell并执行代码,但在Mac中我找不到这个pvpython shell 我已尝试在终端python my_script.py中执行该脚本,但出现了错误 from paraview.simple import * ImportError: No module named paraview.simple 我的系统路径是 '/Library/Python/2.7/site-

我安装了ParaView 5.7并用它录制了一个python脚本。 在Windows10中,我可以打开一个pvpython shell并执行代码,但在Mac中我找不到这个pvpython shell

我已尝试在终端
python my_script.py
中执行该脚本,但出现了错误

from paraview.simple import *
ImportError: No module named paraview.simple
我的
系统路径是

'/Library/Python/2.7/site-packages/pip-19.3.1-py2.7.egg', 
'/Users/jane/Desktop', 
'/home/jane/Code/Kitware/build/VTK/lib/python2.7/site-packages', 
'/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python27.zip', 
'/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7', 
'/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/plat-darwin', 
'/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/plat-mac', 
'/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/plat-mac/lib-scriptpackages', 
'/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-tk', 
'/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-old', 
'/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynload', 
'/Library/Python/2.7/site-packages', 
'/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python', 
'/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/PyObjC'
]

在Mac上,
pvpython
安装在
/Applications/ParaView-5.7.0.app/Contents/bin/pvpython
使用conda安装的ParaView中

$ conda install -c conda-forge paraview 
这对我有用