ubuntu20.04.2 install python 3.8
1: sudo add-apt-repository ppa:deadsnakes/ppa
2: sudo apt update
3: sudo apt install python3.8
4: sudo update-alternatives --install /usr/bin/python3 python3 /usr/bin/python3.6 1
5: sudo update-alternatives --install /usr/bin/python3 python3 /usr/bin/python3.8 2
6: sudo update-alternatives --config python3
Uninstall:
To uninstall the Python3.8 packages, run command:
sudo apt remove --autoremove python3.8 python3.8-minimal
赞 (0)