python - xlrd, xlwt with sagemath -
i want use xlrd, xlwt, xlutils sagemath. have installed them in system's python(2.7.3) sage environment not recognizing them. getting following error when try import sage
importerror: no module named xlrd`
but without sage working fine. idea how can make them work inside sage?? using ubuntu 12(quantal),32 bits , sage version 5.8 python 2.7.5(sage's python).
faced same problem tkinter solved 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 other libraries?
i tried install them manually inside /usr/lib/sagemath/local/lib/python2.7/site-packages/
folder putting tar files extract them , sudo python setup.py install
still not working.
sage not use python installed in system. uses own copy of python while working sage programs have run programs terminal using command
$ sage --python <python_file>
similarly sage not uses modules installed in system's python. modules need installed under sage libraries. have downloaded , extracted folder right used wrong command. go again in xlrd
extracted folder , use command.
$ sage --python setup.py install
now should work.
cheers
Comments
Post a Comment