I was trying to set default python version to python3 in Ubuntu 16.04. By default it is python2 (2.7). I followed below steps :
python3
Ubuntu 16.04
python2
At First Install python3 and pip3
sudo apt-get install python3 python3-pip
then in your terminal run
alias python=python3
Check the version of python in your machine.
python --version