# How can I run ParaView Python scripts on macOS?

**URL:** https://discourse.paraview.org/t/how-can-i-run-paraview-python-scripts-on-macos/6475
**Category:** ParaView Support
**Tags:** python
**Created:** [February 16, 2021, 7:12pm UTC](https://discourse.paraview.org/t/how-can-i-run-paraview-python-scripts-on-macos/6475 "2021-02-16T19:12:33Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![jclai](https://discourse.paraview.org/user_avatar/discourse.paraview.org/jclai/32/4482_2.png) [@jclai](https://discourse.paraview.org/u/jclai)
#### Post date: [February 16, 2021, 7:12pm UTC](https://discourse.paraview.org/t/how-can-i-run-paraview-python-scripts-on-macos/6475/1 "2021-02-16T19:12:33Z")

</div>

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!

---

<div class="post-metadata">

### Author: ![cory.quammen](https://discourse.paraview.org/user_avatar/discourse.paraview.org/cory.quammen/32/11193_2.png) [@cory.quammen](https://discourse.paraview.org/u/cory.quammen)
#### Post date: [February 16, 2021, 7:50pm UTC](https://discourse.paraview.org/t/how-can-i-run-paraview-python-scripts-on-macos/6475/2 "2021-02-16T19:50:02Z")

</div>

I think you can safely ignore those warnings.
