How do I install a python module for use on Linux systems at SEAS?
This article assumes you are logged into a CETS managed Linux machine (Eniac, a lab machine, graduate workstation, etc).
These first two steps only need to be done once.
- Append your .bash_profile so PYTHONPATH includes ~/lib/python2.7/site-packages/
echo export PYTHONPATH='$PYTHONPATH':~/lib/python2.7/site-packages/ >> ~/.bash_profile
- Run this command to update the PYTHONPATH for the current session:
- Download and untar or unzip the module you would like to install.
- CD into the module directory that contains setup.py and run the install:
python setup.py install --prefix=~
If you have any questions, please email email@example.com.