How To Update Python On Linux < UHD • 480p >

# Your new Python version python3.12 --version python3 --version Updating pip and Virtual Environments After installing a new Python, update its pip:

Ubuntu/Debian:

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 Fedora: how to update python on linux

With pyenv , python and pip automatically point to your chosen version without affecting system tools. After any method, check: # Your new Python version python3