Answers for "make python 3 default mac"

2

use python3 as default mac

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

which python mac

$ brew update && brew upgrade python
Posted by: Guest on September-23-2020
1

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
2

macos set default python version

$ pyenv global 3.7.3
# and verify it worked 
$ pyenv version
3.7.3 (set by /Users/mbbroberg/.pyenv/version)
Posted by: Guest on July-11-2020
0

use python as python3 zsh

# Go into your .zshrc file. Is there a line that reads:
alias python='python3'
Posted by: Guest on August-04-2020
0

set python 3 as default mac

[ -e ~/.profile ] && . ~/.profile
Posted by: Guest on December-01-2020

Python Answers by Framework

Browse Popular Code Answers by Language