Ask Your Question

SageMath as a regular python package

asked 2018-02-03 00:00:07 +0200

johnny python gravatar image

If one were to endeavor converting SageMath into a regular python package, which parts would be easy to convert and which would be difficult?
Why didn't sage start out as a regular python package in the first place?

I imagine such a conversion project ending up with a package that can be installed with pip or conda. After the package is installed any python script can import sage and can be run with the system's plain old python binary.

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2018-02-05 06:44:17 +0200

slelievre gravatar image

updated 2018-02-15 02:51:36 +0200


SageMath can be installed using conda. See the wiki page:


Making the Sage library pip-installable is the object of:

There is progress on this tracking ticket, but a lot of work remains! Help welcome!


For more discussion of distribution and packaging of SageMath, see

and follow links on that page.

edit flag offensive delete link more


While it is cool that sage is packed as a conda package (I was not aware of that - thanks) it's still not a regular python package in the sense that you can't import it from a regular python script that is being run by a regular python binary.
I was wondering why that is and if converting sage to such a package would be difficult.

johnny python gravatar imagejohnny python ( 2018-02-08 20:55:56 +0200 )edit

I edited my answer, adding the "pip" section to point to the relevant ticket on Sage's Trac server.

slelievre gravatar imageslelievre ( 2018-02-14 11:45:36 +0200 )edit

I guess I was looking for the pip-installable package ticket. Thanks!

johnny python gravatar imagejohnny python ( 2018-02-17 15:00:37 +0200 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools


Asked: 2018-02-03 00:00:07 +0200

Seen: 2,292 times

Last updated: Feb 15 '18