Installing Python

sudo apt update

sudo apt upgrade

sudo apt-get install wget build-essential checkinstall libreadline-gplv2-dev libncursesw5-dev libssl-dev libsqlite3-dev tk-dev libgdbm-dev libc6-dev libbz2-dev libffi-dev libbz2-dev zlib1g-dev libgdbm-dev tk-dev tcl-de libbz2-dev libreadline-dev libgdbm-compat-dev

wget https://www.python.org/ftp/python/3.12.5/Python-3.12.5.tar.xz

tar -xf Python-3.12.5.tar.xz

cd Python-3.12.5/

./configure --enable-optimizations

make -j $(nproc)

sudo make altinstall

sudo update-alternatives --install /usr/bin/python3 python3 /usr/local/bin/python3.15

python3 --version

python --version

  

📝 📜 ⏱️ ⬆️