How can I run ParaView Python scripts on macOS?

Hello,

I am trying to run a ParaView Python script from my macOS terminal using this command

/Applications/ParaView-5.9.0.app/Contents/bin/pvpython /Users/joycelai/Documents/PythonScripts/paraview-2-16-2021.py

and I get this error:

Could not find platform dependent libraries <exec_prefix>
Consider setting $PYTHONHOME to <prefix>[:<exec_prefix>]

My PYTHONPATH and PYTHONHOME variables are currently not set, and I do not know if I need to set them or what to set them as.

If anyone knows I would greatly appreciate it!

1 Like

I think you can safely ignore those warnings.

1 Like