Hi - trying to get up and running on Mac - following the tutorial ‘installing python3 and python packages’
the alias doesn’t seem top work
This is copied from the bash file i’m editing
Setting PATH for Python 3.9
The original version is saved in .bash_profile.pysave
PATH=“/Library/Frameworks/Python.framework/Versions/3.9/bin:${PATH}”
export PATH
alias python="python3
alias pip=“pip3”
but then when i have saved it - closed terminal and reopened i write python version and it returns python2 version not 3 as the article says it should
- Execute
open ~/.bash_profile
from a Terminal (if the file was not found, then runtouch ~/.bash_profile
first). - Copy and paste
alias python="python3"
into the now open.bash_profile
file and save. - While we’re at it, go ahead and copy and paste
alias pip="pip3"
into the file as well in order to create an alias for the Python 3pip
package manager. - Finally, restart the Terminal and run
python --version
. We should see the exact same output as runningpython3 --version
.
i’m a noob and if the answer is something really obvious i apologise