
There is a way better way to install python 3.8 that is much easier (requires conda):ġ) run ‘sudo apt-get remove python3.8’, to undo the damage done by this article.Ģ) run ‘conda create -n p圓8 anaconda=2020.02 python=3.8’ģ) finally after all the packages are installed run ‘conda activate p圓8’, in fact conda will prompt you to do so with instructions! Now the terminal can open like normal, but we still haven’t installed python 3.8. Then run ‘sudo update-alternatives –config python3’ and choose the old version of python (3.6 in this case). If this happens to you, open xterm (since we can’t access the terminal right now). I believe the problem occurred because I set python up with anaconda (The cadillac of open-source python distros). This didn’t work for me… I read the article and follow all the steps, then the terminal wouldn’t launch. Share your thoughts in the comment section. In this article, we learn how to upgrade python to the latest version that is 3.8 in Ubuntu 18.10.


Remember the selected number may differ so choose the selection number which is for Python 3.8.įinally, test the current version of python by typing this : 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.

