How to Install Python 2.7 on your Dedicated Server
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
- Log into your server via the root user.
- 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
- Run the commands in the following order to prevent any errors. cd /usr/src
tar xvfz Python-2.7.8.tgz
./configure --with-threads --enable-shared
- After the make altinstall command is complete run the next set of commands to finish the installation. touch /etc/ld.so.conf.d/usrlocallib.conf
echo "/usr/local/lib/" >> /etc/ld.so.conf.d/usrlocallib.conf
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.
Support Center LoginOur Login page has moved, Click the button below to be taken to the login page.
Social Media Login
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, install.sh, or shtool in "." "./.." "./../.." I have tried to look in Google and found a few things but then I get configure.ac or configure.in not fount, could you please help me to see how can I get this sorted. Thanks
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.