# Building ParaView 5.8.1 fails because it can not find python

**URL:** https://discourse.paraview.org/t/building-paraview-5-8-1-fails-because-it-can-not-find-python/6172
**Category:** ParaView Support
**Tags:** vtk, python
**Created:** [January 5, 2021, 3:20pm UTC](https://discourse.paraview.org/t/building-paraview-5-8-1-fails-because-it-can-not-find-python/6172 "2021-01-05T15:20:38Z")
**Posts on this page:** 1
**Page:** 2

<div class="post-metadata">

### Author: ![Sunethan](https://discourse.paraview.org/user_avatar/discourse.paraview.org/sunethan/32/13479_2.png) [@Sunethan](https://discourse.paraview.org/u/Sunethan)
#### Post date: [January 26, 2024, 10:01pm UTC](https://discourse.paraview.org/t/building-paraview-5-8-1-fails-because-it-can-not-find-python/6172/21 "2024-01-26T22:01:39Z")

</div>

I also encountered this issue with v5.10.0. My solution is to add to the cmake command

```auto
-DPython3_EXECUTABLE=/usr/bin/python3

```

In the beginning, I was using the master version and couldn’t solve it with the above command. But after I switched to v5.10.0, it worked!

[Previous page](https://discourse.paraview.org/t/building-paraview-5-8-1-fails-because-it-can-not-find-python/6172.md?page=1)
