ASKSAGE: Sage Q&A Forum - Individual question feedhttp://ask.sagemath.org/questions/Q&A Forum for SageenCopyright Sage, 2010. Some rights reserved under creative commons license.Thu, 31 Jan 2013 01:52:01 -0600How to import 3rd party modules into SAGE?http://ask.sagemath.org/question/9754/how-to-import-3rd-party-modules-into-sage/In SAGE, I can import math or numpy from within a script, but I'm unable to import stuff located in, for example, /usr/lib/python2.7/dist-packages/. How could I fix that?
Thanks in advance.Thu, 31 Jan 2013 00:38:17 -0600http://ask.sagemath.org/question/9754/how-to-import-3rd-party-modules-into-sage/Answer by fidbc for <p>In SAGE, I can import math or numpy from within a script, but I'm unable to import stuff located in, for example, /usr/lib/python2.7/dist-packages/. How could I fix that? </p>
<p>Thanks in advance.</p>
http://ask.sagemath.org/question/9754/how-to-import-3rd-party-modules-into-sage/?answer=14499#post-id-14499I'm not sure if fixing that would be good.
You might find these other answers relevant to your question:
I would suggest trying an approach as in:
[Using Psycopg2 and other libraries in sage](http://ask.sagemath.org/question/1252/using-psycopg2-and-other-libraries-in-sage).
If you are not able to install the module via `easy_install`, then I would suggest this approach:
[How do I install python modules, or use a different version of python? (with sage)](http://ask.sagemath.org/question/1382/how-do-i-install-python-modules-or-use-a-different)
Thu, 31 Jan 2013 01:52:01 -0600http://ask.sagemath.org/question/9754/how-to-import-3rd-party-modules-into-sage/?answer=14499#post-id-14499