Official installation guide for Python p5 library can be found in this link
$ sudo apt-get install libglfw3
$ pip install numpy
$ pip install p5==0.5.0
Official installation guide for Python p5 library can be found in this link
$ sudo apt-get install libglfw3
$ pip install numpy
$ pip install p5==0.5.0