

That means when we run python3 it will execute as python3.6 but we want to execute this as python3.8. Sudo update-alternatives -install /usr/bin/python3 python3 /usr/bin/python3.8 2 Step 4: Update Python 3 for point to Python 3.8īy default, Python 3 is pointed to Python 3.6. Sudo update-alternatives -install /usr/bin/python3 python3 /usr/bin/python3.6 1 Sudo apt-get install python3.8 Step 3: Add Python 3.6 & Python 3.8 to update-alternativesĪdd both old and new versions of Python to Update Alternatives. Install Python 3.8 by using the below command : Step 2: Install the Python 3.8 package using apt-get Verify the updated Python packages list using this command.Īs seen in the image above, Now we have Python 3.8 available for installation. Update the package list using the below command.

Sudo add-apt-repository ppa:deadsnakes/ppa On launchpad repository named deadsnakes is available for Python Packages.Īdd the deadsnakes repository using the below commands. So, we have to add an additional repository. Latest Python 3.8 not available in Ubuntu’s default repositories. Step 4: Update Python 3 for point to Python 3.8įollow the simple steps to install and configure Python 3.8 Step 1: Add the repository and update.Step 3: Add Python 3.6 & Python 3.8 to update-alternatives.Step 2: Install the Python 3.8 package using apt-get.
