Apr 27 2019

How to make another version of Python the default version in Linux

In this post I show you how to make Python 3.7 the default version of Python on Linux. (This should work on all distributions of Linux).

My default version of Python was Python 2 and I needed to change it to version 3.7. 1.

Steps:

  1. Open your .bashrc file in your home directory using a text editor or the shell.
  2. Add alias python=’/usr/bin/pythonx.x’ to the file and save it. (x.x is your version that you want to be the default)
  3. Logout of your session or reboot your computer, then log back in.
  4. Open the terminal and then type in Python. It should now show you the version that you specified in the .bashrc file


Apr 25 2019

Install Python 3.7 on Elementary OS

In this article and the below video I show you how to install Python 3.7 the easy way on Elementary OS. This works on Pop_OS! and Ubuntu too.

1. Open a terminal
2. type and run: sudo apt update
3. type and run: sudo apt install software-properties-common
4. type and run: sudo add-apt-repository ppa:deadsnakes/ppa
5. Press Enter to add the above repository
6. type and run: sudo apt update
7. type and run: sudo apt install python3.7

You now have Python 3.7 installed