Ask Your Question

Revision history [back]

The xlrd and xlwt python modules are not included in Sage's python, so you'll have to install them. Download the modules (xlrd is here) in .tar.gz form and unpack in a directory:

~/Downloads> tar xvzf xlrd-0.7.1.tar.gz
~/Downloads> cd xlrd-0.7.1

Now, have Sage's python install the module:

~/Downloads/xlrd-0.7.1> mysage -python setup.py install

where "mysage" refers to your sage script, for example "/Users/bob/sage-4.6.1/sage"

The xlrd and xlwt python modules are not included in Sage's python, so you'll have to install them. Download the modules (xlrd is here) in .tar.gz form and unpack in a directory:

~/Downloads> tar xvzf -xvzf xlrd-0.7.1.tar.gz
~/Downloads> cd xlrd-0.7.1

Now, have Sage's python install the module:

~/Downloads/xlrd-0.7.1> mysage -python setup.py install

where "mysage" refers to your sage script, for example "/Users/bob/sage-4.6.1/sage""/Users/bob/sage-4.6.1/sage". In Sage you can now import and use xlrd.