Start by typing the command in the Ubuntu terminal ternimal:
Sudo apt - get the install python3.8
The Python program you just downloaded is installed in usr/local/lib/python3.8. After the installation is complete, you type Python into the terminal, and the output message will tell you that it is version 2.7, which means that 3.8 is not opened by default, so we need to modify the link. The method is as follows:
- Back up the original link first (it is a good practice to back up before performing a delete on the system). Enter the command under ternimal:
sudo cp /usr/bin/python /usr/bin/python_bak
- Remove the original default link to python2.7. Enter the command under ternimal:
sudo rm /usr/bin/python
- Respecify the new link to python3.8. Enter the command:
Sudo ln -s /usr/bin/python3.8 /usr/bin/python