From OpenFOAMWiki

ParaView is an open-source application for data analysis and visualization.

1 Compiling OpenFOAM's third party ParaView version

1.1 Python scripting option

When running makeParaView4 you may specify the -python option.

1.1.1 Detailed instructions for Ubuntu 14.04

First, install the python-dev package:

sudo apt-get install python-dev

If the default Python library cannot be found, the makeParaView4 script's variable must be edited.

# Python support:
# note: script will try to determine the appropriate python library.
#       If it fails, specify the path using the PYTHON_LIBRARY variable