These instructions are for users who have all required supporting packages present on their systems, and their python installation already works with all those required modules enabled. In other words, the stand-alone PyRAF installation is for those users who know what they are doing. To install all of stsci_python instead, go here.
Instructions
To install the stand-alone PyRAF build, download and then unpack the source distribution file in some temporary area on disk. PyRAF requires stsci.tools and stsci.distutils from stsci_python, so they have been included for you in the tar file.
- gunzip pyraf-n.m.tar.gz
- tar xvf pyraf-n.m.tar
- cd pyraf-n.m
- python setup.py install
This will install stsci.tools and then PyRAF into the Python installation found in your PATH. The process also requires the packages "distribute" and "d2to1", but the installation will automatically download and install them for you.
If you have multiple installations of Python on your machine, use the fully qualified pathname to the python executable above in place of "python".
Also see:
python setup.py --help
Assistance
If you have any difficulties with the installation of any of the packages in stsci_python, or even if you just have questions or suggestions, please do not hesitate to contact us at help@stsci.edu.