Install Python 3

sudo apt-get update
sudo apt-get install python3
sudo apt-get install python3-pip

To use the gpio pins > sudo apt-get install python3-rpi.gpio