A new one, because I want to get the local django project to the cloud server (the local environment is 3.7), I want to update python3.7 under the Alibaba Cloud Ubuntu image. I just started using Ubuntu16. After a long time, I always report that there is no python3.7. I read a lot of tutorials on the Internet and asked to use the command sudo add-apt-repository ppa:deadsnakes/ppa
Then use apt-get update
Then apt-get install python3.7
I don't know if everyone's Ubuntu16 can work, at least I haven't figured it out tonight. In fact, you can look at New Python Versions: "deadsnakes" team , which should be an official document, and there should be a sentence on it to inform the applicable Ubuntu version
Finally, I reinstalled the Ubuntu 18 system
First use the command apt-get install software-properties-common
(If it fails, first use the command apt-get update and then enter apt-get install software-properties-common)
The subsequent steps are the same as Ubuntu16 mentioned above (use 3 commands)
later you will see
Just after entering y
Then enter python and double-click tab to see:
You can see that 3.7 has been installed.
After all, I am a novice, so please correct me if I am wrong.
At the same time, I hope to help those who are confused.