InMotion Hosting Support Center

Note that you will require root access in order to use these directions.

In this guide, we will go over how to install python 2.7 on your dedicated server. This guide requires you to be logged into the servers command line interface as the root user.

Installing Python 2.7

  1. Log into your server via the root user.
  2. Install all of the requirements via yum.
    yum -y install gcc gdbm-devel readline-devel ncurses-devel zlib-devel bzip2-devel sqlite-devel db4-devel openssl-devel tk-devel bluez-libs-devel make
  3. Run the commands in the following order to prevent any errors.
    cd /usr/src
    tar xvfz Python-2.7.8.tgz
    cd Python-2.7.8
    ./configure --with-threads --enable-shared
    make altinstall
  4. After the make altinstall command is complete run the next set of commands to finish the installation.
    touch /etc/
    echo "/usr/local/lib/" >> /etc/
    cd /usr/src
    sh setuptools-0.6c11-py2.7.egg
    easy_install pip
    pip install virtualenv

At this point Python 2.7 has been installed and you can run the python2.7 command on your server to enter a new environment.

Was this article helpful?

Related Questions

Here are a few questions related to this article that our customers have asked:
Ooops! It looks like there are no questions about this page.
Would you like to ask a question about this page? If so, click the button below!
Ask a Question

Support Center Login

Our Login page has moved, Click the button below to be taken to the login page.

n/a Points
2016-08-11 2:04 pm
Hi, I am following this post, trying to install Python, but when I get to this line: ./configure --with-threads --enable-shared , I get this error: configure: error: cannot find install-sh,, or shtool in "." "./.." "./../.." I have tried to look in Google and found a few things but then I get or not fount, could you please help me to see how can I get this sorted. Thanks
31,313 Points
2016-08-11 2:36 pm
I have verified that these steps work. Ensure you are logged in as the user.

If your problems persist, I recommend contacting Live Support, so they can help you perform the install.

Thank you,

Post a Comment

Email Address:
Phone Number:

Please note: Your name and comment will be displayed, but we will not show your email address.

2 Questions & Comments

Post a comment

Back to first comment | top

Need more Help?


Ask the Community!

Get help with your questions from our community of like-minded hosting users and InMotion Hosting Staff.

Current Customers

Chat: Click to Chat Now E-mail:
Call: 888-321-HOST (4678) Ticket: Submit a Support Ticket

Not a Customer?

Get web hosting from a company that is here to help. Sign up today!