Answers for "mac alias python to python3"

4

use python3 as default mac

ln -s -f /usr/local/bin/python3.7 /usr/local/bin/python
Posted by: Guest on April-24-2020
2

set python3 as default mac

# it is said not to do but I used it anyway, because of the conveniency
$ echo "alias python=/usr/local/bin/python3.7" >> ~/.zshrc
Posted by: Guest on September-23-2020
0

alias python in macbook

open -e  ~/.zshrc
// add
alias python="python3"
// Save and restart console
Posted by: Guest on March-21-2022

Python Answers by Framework

Browse Popular Code Answers by Language