Building ParaView 5.8.1 fails because it can not find python

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

-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!