Archive for June, 2018

Step 1: Edit the file bashrc  ( vi ~/.bashrc ) and add below line into that

alias python=python3

Step 2: Save the file and run below command

source ~/.bashrc

Step 3: Now check the current version of python

python –version