module load petsc/3.6.3-for-python
Install petsc4py
pip install petsc4py==3.6.0
env CFLAGS="-I$MPI_INCLUDE -I$PETSC_DIR/include -L$PETSC_DIR/lib" pip install -U h5py
If no system wide installation clone from git and pip install e.g.
git clone git://github.com/OP2/PyOP2.git
Go to the cloned folder
python setup.py install
pip install pytest pip install flake8