Friday, March 9, 2012

Installing python modules

My sysadmins have installed STScI's python, which lives in /usr/stsci/pyssg.   This means that modules have to be installed as root.  But root doesn't know that this is the right python directory.  Here's the workaround:
> sudo tcsh
> source ~username/.cshrc
> easy_install the-python-package,  OR
> python setup.py install
> exit



No comments:

Post a Comment