How do I install Python 3 on my web server?

Avatar
  • updated
  • Answered
I've successfully accessed my server via SSH, but I noticed that only python 2 appears to be installed. (python --version returns "Python 2.7.5" and python3 --version returns "command not found". What's the best way to go about installing python 3.

I'm on a shared host business plan.
Duplicates 1
No python in Cpanel

Hi all, total noob here. I'm trying to find out how to get a tool I had developed for me running on my website. It needs python to operate but I can not find python anywhere in my cpanel nor can I find out how to get it installed there. 

If anyone has any pointers to get me headed in the right direction, I'd appreciate that greatly.

Many thanks.

Avatar
anonymous
Quote from BaldEagle

I am about to leave InMotionHosting because of things like that. Your cheaper accounts run on obsolete stuff that you cannot update, to force you to upgrade to more expansive accounts. I don't like this attitude. Another thing is not allowing Node.js to run, except on dedicated servers, where you have to shove more money into it.

I understand your frustration. The goal on Shared Hosting is to have the latest, stable version of software to satisfy the majority of customers on that product. Many times, I recommend more advanced users to switch to Cloud Server Hosting for a comparable price for more freedom.

Avatar
BaldEagle
Quote from IMH Support Agent 5
Hello,

Thank you for submitting a question about upgrading your server's Python version. Unfortunately, there is no way to upgrade Python in a shared hosting environment. The default shared account user lacks the necessary privileges---for security reasons. However, in a private hosting environment, like a VPS or Dedicated hosting plan, it is possible to complete this upgrade. However, upgrading Python may damage the functionality of various background scripts. I would recommend working our Managed Hosting or Advanced Support teams if you decide to upgrade to a VPS and upgrading your Python version.

Best,
Christopher M.

I am about to leave InMotionHosting because of things like that. Your cheaper accounts run on obsolete stuff that you cannot update, to force you to upgrade to more expansive accounts. I don't like this attitude. Another thing is not allowing Node.js to run, except on dedicated servers, where you have to shove more money into it.

Avatar
24dlong
I found the answer to my own question. Here is a great article that walked me through the terminal commands to do this via SSH: https://www.godaddy.com/garage/how-to-install-and-configure-python-on-a-hosted-server/
Avatar
IMH Support Agent 5
Hello,

Thank you for submitting a question about upgrading your server's Python version. Unfortunately, there is no way to upgrade Python in a shared hosting environment. The default shared account user lacks the necessary privileges---for security reasons. However, in a private hosting environment, like a VPS or Dedicated hosting plan, it is possible to complete this upgrade. However, upgrading Python may damage the functionality of various background scripts. I would recommend working our Managed Hosting or Advanced Support teams if you decide to upgrade to a VPS and upgrading your Python version.

Best,
Christopher M.