HostMonster Web Hosting Help

Install Python 2.7 to your account


HostMonster uses the preinstalled version of Python that ships with CentOS. Because of this it is often not the latest release. This article will explain how to install an updated version of python locally.

Download Python

Enter the following commands to download and extract Python 2.7 to your hosting account.
        mkdir ~/python
        cd ~/python
        tar zxfv Python-2.7.2.tgz
        find ~/python -type d | xargs chmod 0755
        cd Python-2.7.2

Install Python

Once extracted you can use the following commands to configure and install Python.

        ./configure --prefix=$HOME/python
        make install

Modify the .bashrc

For your local version of python to load you will need to add it to the .bashrc file.
        vim ~/.bashrc
Press i

        export PATH=$HOME/python/Python-2.7.2/:$PATH
Write the changes (press ESC) and close vim:
Press Enter
        source ~/.bashrc
Note: You may need to logout for the environment to update.
Enter python -V to check the version of python installed.
Knowledgebase Article 63,120 views bookmark tags: python (updated 837 days ago)

Was this resource helpful?

Did this resolve your issue?

Please add any other comments or suggestions about this content:

Recommended Help Content

I need to install a Python module that is not available, but I can't. I get a permission denied error when I follow installation instructions that come with the module. (updated 2163 days ago)
Knowledgebase Article 105,430 views tags: python

I send an email to one person and then do a carbon copy (Cc) to multiple other people. Not everyone is receiving the email, even when I try using blind carbon copy (Bcc). (updated 821 days ago)
Knowledgebase Article 73,049 views tags: blind carbon carboncc copy email mail multiple partial people persons receive receiving

We provide a program which makes it very easy to install third party scripts to your hosting account. If you want your website to have a WordPress blog, you can use MOJO Marketplace to install WordPres (updated 185 days ago)
Getting Started Article 570,370 views tags: blog install scripts simple wordpress

Related Help Content

Install Themes These steps will help you install and select a WordPress theme for your blog. Inside the WordPress Dashboard, select the Add New Themes link in the Appearance Menu. You can search for (updated 192 days ago)
Getting Started Article 282,407 views tags: install link theme themes wordpress

This article explains how to install WordPress when Mojo is unable to create the database automatically. (updated 87 days ago)
Knowledgebase Article 5,947 views tags: MOJO automatic database install wordpress

To install a phpBB forum using MOJO Marketplace, log into the cPanel and scroll down to the Software/Services category. Click on the MOJO Marketplace icon. Click on the phpBB icon. Click the Install Now bu (updated 793 days ago)
Getting Started Article 188,067 views tags: MOJO checkbox install phpbb terms

Install Plugins These steps will help you install and select a WordPress plugin for your blog. Inside the WordPress Dashboard, select the Add New link from the Plugins menu. You can search for a plug (updated 193 days ago)
Getting Started Article 108,932 views tags: blog install link plugin wordpress

Can I install other applications on my web space besides the ones you indicated on the Hosting Features page? (updated 162 days ago)
Knowledgebase Article 53,021 views tags: install party

To help with transferring of accounts from other servers to your account. (updated 841 days ago)
Knowledgebase Article 60,686 views tags: account dedicated multi multiple reseller single transfer whm

How do I install my own Ruby Gems? (updated 697 days ago)
Knowledgebase Article 93,246 views tags: gem install ruby

How to install Java in a dedicated server. (updated 793 days ago)
Knowledgebase Article 47,633 views tags: dedicated install java server yum