Answers for "how to make python3 default"

0

use python3.7 as default

Simple solution is edit .bashrc and put this line:

alias python3=python3.7
Whenever you will write python3 it will replace it with python3.7.

Or you can use command update-alternatives which is preferred i.e:

sudo update-alternatives --install /usr/bin/python3 python3 /usr/bin/python3.6 1
sudo update-alternatives --install /usr/bin/python3 python3 /usr/bin/python3.7 2
So here python3.7 will have higher priority then python3.6. Then use:

sudo update-alternatives --config python3
Press the enter key if you are satisfied
Posted by: Guest on June-22-2021
1

mac catallina python3

$ brew install pyenv
Posted by: Guest on July-06-2020
0

transition from python 2 to 3 terminal

alias python="python3"
Posted by: Guest on August-21-2020

Code answers related to "how to make python3 default"

Python Answers by Framework

Browse Popular Code Answers by Language