Home > Mobile >  Updating from Python 3.5.2 to Python 3.8 using deadsnakes PPA is not working on Ubuntu 16.04 LTS
Updating from Python 3.5.2 to Python 3.8 using deadsnakes PPA is not working on Ubuntu 16.04 LTS

Time:03-17

I can't update Python on Ubuntu 16.04 LTS from my Python 3.5.2 to 3.8. I found an existing post enter image description here

CodePudding user response:

My ubuntu did not have the latest pre-built packages so I had to install from source according to the following guide: here.

sudo apt update
sudo apt install build-essential zlib1g-dev libncurses5-dev libgdbm-dev libnss3-dev libssl-dev libreadline-dev libffi-dev libsqlite3-dev wget libbz2-dev
wget https://www.python.org/ftp/python/3.8.0/Python-3.8.0.tgz
tar -xf Python-3.8.0.tgz
cd Python-3.8.0
./configure --enable-optimizations
make -j 8
sudo make altinstall
  • Related