Adding a Python Module in Bluehost
Below are the steps used to install NumPy in Bluehost
Assumption: You have ssh access
STEP 1
Add the following 2 lines in your .bashrc file:
export PYTHONPATH=$HOME/.local/lib64/python2.4/site-packages:$PYTHONPATH export PATH=$HOME/.local/bin:$PATH
STEP 2
Download the tarball (*.tar.gz) file
Untar and unzip the file
tar -zxvf numpy-1.6.0.tar.gz
rename the directory
mv numpy-1.6.0 numpy
cd to the numpy directory
cd numpy
STEP 3
Build the module
python setup.py build
Install the module
python setup.py install --prefix=/home/your_username/.local
STEP 4
Test the module. Note: you should cd to another directory where ‘numpy’ is not located.
python
>>> import numpy >>>
