Your Question: How Do I Change the Default Python Version in Linux?
Contents How Do I Make Python3 Default in Linux? to Change to Python3, You Can Use the Following Command in Terminal Alias Python=Python3. to Go into the...
Contents
How do I make python3 default in Linux?
To change to python3, you can use the following command in terminal alias python=python3 . to go into the bashrc file and then at the top of the bashrc file make the following change. Check the version of python in your machine.
How do I make Python 2.7 default in Linux?
Add /usr/local/bin to your PATH environment variable, earlier in the list than /usr/bin . This will cause your shell to look first for a python in /usr/local/bin , before it goes with the one in /usr/bin . (Of course, this means you also need to have /usr/local/bin/python point to python2.