Report this

What is the reason for this report?

How to upgrade python version of droplet?

Posted on March 14, 2021

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



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!

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.

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

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.