Ask Your Question

Revision history [back]

Indeed Sage has its own virtual environment, so it does not share Python libs with the system. Some Linux distributions try to so this but it requires quite some work.

If you want to experiment, you can try to symlink $SAGE_ROOT/local/lib/python22.7/site-packages/some_lib to the one of your system, but it does not awlays work. You can aslo add your system's Python lib directory to the Python path of Sage.

That said,i am not sure it is worth the effort for a single install, so unless you want to participate to some distribution packaging and share your experiments, double installing is currently usually preferable.

Note that you can install a Python library in Sage by typing from a terminal:

sage -pip install some_lib