I am using Ubuntu. I want to make python3 be the default python version instead of python2. I tried many ways.
For example :
Open your .bashrc file nano ~/.bashrc. Type
alias python='python3' alias pip='pip3'
on to a new line at the top of the file then save the file with ctrl+o and close the file with ctrl+x. Then, back at your command line type source ~/.bashrc. Now your alias should be permanent.
I also tried :
update-alternatives --remove python /usr/bin/python2 update-alternatives --install /usr/bin/python python /usr/bin/python3
But the problem didn't solve. How can I solve this issue ?