xlrd, xlwt, xlutils with sage

33 views
Skip to first unread message

Shaifali Agrawal

unread,
Mar 24, 2014, 10:07:23 AM3/24/14
to sage-s...@googlegroups.com
Hello everyone

I want to use xlrd, xlwt, xlutils with sagemath. I have installed them in my system's Python but sage environment is not recognizing them. Any idea how can I make them work inside sage?? I am using Ubuntu 12(quantal) with 32 bits and Sage Version 5.8 with Python 2.7.5

Got same problem with Tkinter too but solved it using " sudo apt-get install tk8.5-dev " got solution form http://www.sagemath.org/doc/faq/faq-usage.html#how-to-get-sage-s-python-to-recognize-my-system-s-tcl-tk-install

But what for other libraries?

I tried to install them manually inside /usr/lib/sagemath/local/lib/python2.7/site-packages/ folder by putting tar files then extract them and then sudo python setup.py install
but still not working

John H Palmieri

unread,
Mar 24, 2014, 11:07:56 AM3/24/14
to sage-s...@googlegroups.com
Here's the answer I just posted to your question on Stack Overflow (http://stackoverflow.com/questions/22612301/xlrd-xlwt-with-sagemath):

Rather than installing them with the system Python, install them with Sage's Python: you can either do sage --sh: this starts a subshell with various environment variables set appropriately for use with Sage, in particular $PATH will have $SAGE_ROOT/local/bin first. Then install the packages with python setup.py install etc. Or you can just run Sage's Python directly with sage --python setup.py install ....

--
John

Shaifali Agrawal

unread,
Mar 24, 2014, 11:21:28 AM3/24/14
to sage-s...@googlegroups.com
Hey John Thanks alot!!

Reply all
Reply to author
Forward
0 new messages