You will need to install numpy, scipy and matplotlib to get pylab. In ubuntu, you can install them with this command:
sudo apt-get install python-numpy python-scipy python-matplotlib
If you installed python from the source, you will need to install these packages through pip. Note that you may need to install other dependencies for this, as well as install numpy in front of the other two.
However, I would recommend using the python version in the repositories, as I think it is relevant with the current python version (2.7.3).
Trevor Jun 09 2018-12-12T00: 00Z
source share