Open the terminal and enter the following command:
sudo apt-get install build-essential python-dev python-numpy python-setuptools python-scipy libatlas-dev libatlas3-base
sudo apt-get install python-matplotlib
sudo apt-get install python-sklearn
Installation successful.