How To Change Python3 To Default In Linux Mint
I have a little problem with changing python3 to default in newly installed operating system linux Mint 19.3. It was pretty easy on Ubuntu 16.04 but now I need small help here. So
Solution 1:
In your case, priority is missing, just append 1
at the end of the command like this :
sudo update-alternatives --install /usr/bin/python python /usr/bin/python3.6 1
Solution 2:
To define python3 as your default version of python on linux, you need to add a specific line to .bashrc
file located in your home directory.
Here is a simple method to do so through command line interface (termianl).
Run:
$ echo "alias python='python3'" >> .bashrc
$ source .bashrc
then run python --version
to check if the change has applied.
Post a Comment for "How To Change Python3 To Default In Linux Mint"