CodePudding user response:
Use Apt in Python 3.8 installed on Ubuntu 18.041, as the root user or have sudo access user identity, run the following command, to update the package list and install the necessary components:
Apt update
Apt install software - the properties - common
The add apt - repository ppa: deadsnakes/ppa
When prompted, press Enter to continue:
Apt install python3.8
$python3.8 - version
Return information:
Python 3.8.0