Python 3.6 has been released and in this guide, we are going to install python3 on a CentOS 7 NVMe VPS. This guide will work for dedicated servers too.
Python is a programming language in use by millions of applications around the world. Its simple language is easy to learn yet powerful. Python is not included in the default repository used in CentOS, it’s included in the InLine Upstream repository.
Install Python3 – CentOS 7
If you have just purchased your server then an update of the system and cache should have been completed automatically on boot but if now, update the system and cache.
yum update -y ; yum makecache -y
Install Utils
Next, install the utils package using yum from the ssh console.
yum install yum-utils -y
Install InLine Upstream repository
Now to install Python we need to add the IUS repository;
yum install \
https://repo.ius.io/ius-release-el7.rpm \
https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
Update Yum Cache
Finally, before installing Python update your yum cache again.
yum makecache -y
Install Python 3.6
Next, install Python
yum install python36u -y

To install a different version of Python you can use the alternative commands to install your required version
Install Python 3.5
yum install python36u -y
Install Python 3.4
yum install python34u -y
Python should now be deployed to your VPS if you need to remove a version from your server issue the yum remove command and the version of Python you want to remove, yum remove python34u -y
Install OpenVPN to a First2Host NVMe VPS
How was this article – Install Python3 CentOS 7
You might also like
More from Dedicated Servers
Enable Mod_RemoteIP – See Visitors Real IP address when using Cloudflare & Apache
If you are using Cloudflare on your Apache server you will always see Cloudflare IPs in your logs and not …
Fix 413 Request Entity Too Large Errors When Using NGINX
Just like Apache, NGINX imposes default limits on the size of files that can be uploaded. A 413 Request Entity …
Cloud-init Modules That Automate and Customize Deployments
Cloud-init is a popular way to automate deployments of instances in a cloud or none cloud environment. To save having …