I'm trying to set an alias for python to python3, and so far in .bashrc
I have set the following:
.bashrc
alias python=python3
Following which, I ran: source ~/.bashrc
. However, when I execute which python
, it still points to /usr/bin/python
, while which python3
returns /user/bin/python3
.
I'm currently using bash shell, but I'm not sure why my python is not being aliased correctly to python3.
I've read in some places I need to set the alias in .bash_aliases
or .bash_profile
but this is my first time doing all of this so I'm a little lost. Appreciate any help!