Switching Default Python Interpreter | Mac OS

preview_player
Показать описание
Here are the commands used in this video:

1: $ which python3
/usr/local/bin/python3

2: vi ~/.bash_profile
alias python='/usr/local/bin/python3'

3: source ~/.bash_profile

4: python --version
Рекомендации по теме
Комментарии
Автор

Great, only yours worked! I tried a few others, your code made my version default 3 now, thank you

MikeSEO-zezv
Автор

after closing the terminal and reopen it . then check the version, it'S showing previous version of python . why?

EImon
Автор

Hello

It is changed to 3.10 but once i close the terminal and reopen it again it became 2.7

yaserali
Автор

Hey brother can you explain for me what do you mean hold shift and call on

salwanbarberr
Автор

It is changed to 3.11.3 but once i close the terminal and reopen it again it became 3.9.6

Harelcdo