How to install and setup Python3 as the default version in Mac OS

Install Python3:

Run the following command in terminal:

brew install python3

Add 2 alias in the ~/.bash_profile file:

# Set pip3 and python3 as default.
alias python=python3
alias pip=pip3

Leave a Reply

Time limit is exhausted. Please reload CAPTCHA.