¡Haz lo correcto, haz lo correcto!
---> Zero Abra su terminal,
--Primera entrada python -V, es probable que muestre:
Python 2.7.10
-En segundo lugar python3 -V, probablemente muestre:
Python 3.7.2
- En tercer lugar, ingrese where pythono which pythonprobablemente muestre:
/usr/bin/python
--- En cuarto lugar ingrese where python3o which python3, probablemente muestre:
/usr/local/bin/python3
- En quinto lugar, agregue la siguiente línea en la parte inferior de su archivo de variable de entorno PATH en ~/.profile file or ~/.bash_profileBash o ~/.zshrcen zsh.
alias python='/usr/local/bin/python3'
O
alias python=python3
-Sexto ingreso source ~/.bash_profilebajo Bash o source ~/.zshrcbajo zsh.
- En séptimo lugar, sal de la terminal.
--- Octavo Abra su terminal e ingrese python -V, Es probable que muestre:
Python 3.7.2
Lo había intentado con éxito.
Otros, el ~/.bash_profilebajo zsh no es eso ~/.bash_profile.
La variable de entorno PATH en zsh en su lugar ~/.profile(o ~/.bash_file) vía ~/.zshrc.
¡Ayudenos chicos!