KNOWNHOST KNOWLEDGE BASE

Hosting Question? Find the Solution - Browse our Guides, Articles, and How-To's

How to Install Python 3 on a VPS Server?

Category: Guides
Tags: # # # #

Installing Python 3 on a VPS server is a relatively straightforward task that varies slightly based on the operating system behind the VPS. The steps below will assume you’ve logged in to a terminal session on the VPS. Let’s learn How to Install Python on a VPS Server?


The instructions in this section are intended for servers that are panel-less. Installing them on a server already running cPanel will break your cPanel installation.

If you need Python 3 installed and are a managed KnownHost customer, please contact our Support Department

Step 1 : Update Your Packages

Ubuntu/Debian

sudo apt update

CentOS

sudo yum update

Step 2 – Install Python 3.x

Ubuntu/Debian

sudo apt install python3

CentOS

sudo yum install python3

Step 3 – Confirm Installation

You should have successfully installed Python 3.x on your Linux server. To confirm the installation, run the following command in the terminal,

python3

Conclusion

Now that we’ve gone over how to install python on the VPS server. We have covered the above methods for CentOS, Ubuntu, and the Debian Linux operating system. Except for any other error, you can confirm the python installation following step #3.

KnownHost offers 365 days a year, 24 hours a day, all 7 days of the week best in class technical support. A dedicated team ready to help you with requests should you need our assistance. You’re not using KnownHost for the best webhosting experience? Well, why not? Check with our Sales team to see what can KnownHost do for you in improving your webhosting experience.