Ask Your Question

Revision history [back]

One solution is to use Sage's python (sage -python as you've done), but also you need to install pyfits so that Sage's python knows about it. This means finding the installation instructions for pyfits and do them using sage -python instead of your system installation of python:

1. download pyfits to /path/to/pyfits/
2. cd /path/to/pyfits
3. sage -python setup.py install

See also answers to this question.