No Module "sage.all" or no module Pyfits

Hello to all. I am trying to execute a python script on ubuntu with python 2.6. I would like to use two aditionnal module in the script sage and pyfits. But if i add the command line: from sage.all import *, i get the message no module named sage.all.
I try to add, at the beginning of the script the line #!/usr/bin/env sage -python and now he found the sage module but not the module pyfits. Do you know how to have in both time the two modules ? Thanks in advance to all the answers. Any help will be sincerely appreciated. Cheers

1 answer

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: