Install the prerequisite for adding custom PPAs:
# apt install software-properties-common -y
Then proceed and add the deadsnakes PPA to the APT package manager sources list:
# add-apt-repository ppa:deadsnakes/ppa
# apt update
You can now install Python 3.12 with the following command:
# apt install python3.12
# apt install python3.12-venv
To verify the installation and Python 3.12 build version, perform the following:
# python3.12 --version
3.12.0
If you have installed Python 3.12 using the APT package manager, the PIP will not be installed by default. To install PIP, run the following command:
# curl -sS https://bootstrap.pypa.io/get-pip.py | python3.12
Link python
alias python3=python3.12
Để lại một bình luận