Question

How to upgrade python version of droplet?

Hi, How Can I upgrade the python version of the Linux droplet?

Apache/2.4.29 (Ubuntu) mod_wsgi/4.5.17 Python/2.7 configured


Submit an answer

This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

Sign In or Sign Up to Answer

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.

Hi there,

In case that you are using Ubuntu or Debian, you should be able to install Python 3 by running the following:

  1. sudo apt update -y
  2. sudo apt install python3.7

In case that you need to install a very specific version, you can follow the steps here:

https://www.digitalocean.com/community/questions/how-to-install-a-specific-python-version-on-ubuntu

Regards, Bobby