I am trying to make Python 3.4.2 the default on Linux (currently it is 2.7.6). I am not very good at this, but I read in several places on the Internet that you can simply put an alias in a file ~/.bashrcor ~/.bash_aliasesas follows:
alias python='python3'
I don't have a file ~/.bashrcor ~/.bash_aliases., I assume you can just create them. I did this, but the alias does not seem to work. Am I missing something? Do you need a shebang at the beginning of the file? I have tried this in both directions.
Thanks for any help you can give!
source
share