How to install the latest python version on Linux

2 years ago
8

cd /
python3 --version
sudo apt update -y
sudo apt install wget build-essential zlib1g-dev libncurses5-dev libgdbm-dev libnss3-dev libssl-dev libreadline-dev libffi-dev wget libc6-dev -y
cd ~/Downloads/
wget https://www.python.org/ftp/python/3.10.5/Python-3.10.5.tgz
sudo tar xvf Python-3.10.5.tgz
cd python-3.8.3
sudo ./configure --enable-optimizations
sudo make install
python3.10 --version
sudo apt install python3-pip
pip3 --version
sudo pip3 install --upgrade pip
pip3 --version
python3
print ("thank you for watching, please like and commend, have a nice day")

Loading comments...