How to Install Python on HostMonster

104 6
    • 1). Log in to your server via the secure shell.

    • 2). Type "vi .bashrc" and press "Enter." This opens up a bash file in the vi editor. Check that the following lines of code are in the file, and if they aren't, add them:

      export PYTHONPATH=$HOME/.local/lib/python/site-packages:$PYTHONPATH

      export PYTHONPATH=$HOME/.local/lib/python2.4/site-packages:$PYTHONPATH

      export PATH=$HOME/.local/bin:$PATH

    • 3). Press "Esc," then ":x" to exit and save from vi.

    • 4). Type "wget URL" -- replacing URL with the long URL of the Python module you want to install. Press "Enter." Type "tar xzvf FILENAME" -- replacing FILENAME with the filename of the module. Press "Enter."

    • 5). Type "cd FILENAME" and press "Enter." Type "python filename.py build" and press "Enter." Then type "sudo python filename.py install" and press "Enter." Enter your root username, and press "Enter."

Source...
Subscribe to our newsletter
Sign up here to get the latest news, updates and special offers delivered directly to your inbox.
You can unsubscribe at any time

Leave A Reply

Your email address will not be published.