Select Page

By default macOS (High Sierra) comes bundled with python 2.7 pre installed. Handy! But for someone wanting to use a distribution of version 3 you will have to use the “python3” command instead of just “python” when running from the command line. You can either live with this if you work in a mixed 2/3 environment or you can use a Bash Alias in your bash profile to make the  “python” command refer to “python3”. While we are at it we can also do the same thing for pip. Add the lines below to ~/.bash_profile and you are good to go. Also… Don’t forget to close and reopen any terminal windows you may have open.


alias python='python3'
alias pip='pip3'