sudo update
sudo apt install python-dev python-pip

To Install WiringPi2:

sudo pip install wiringpi2

Verify Install:

sudo python
import wiringpi2
wiringpi2.piBoardRev()