Error: Tried to use Sage's Python which was not yet installed.

asked 2019-11-22 19:59:09 +0100

panther gravatar image

I get the following error when I try to run Sage.

  $ sage
  Error: Tried to use Sage's Python which was not yet installed.
  If this was called from an spkg-install script for another package you should add $(PYTHON) as a dependency in build/pkgs/<pkg>/dependencies

I am using MAC. I did install both Python2 and Python3. I also upgraded my python to latest versions using

  $ brew upgrade python@3
  $ brew upgrade python@2

I do not understand the problem. Please help me.

edit retag flag offensive close merge delete

Comments

Sage builds its own python, so the python supplied by brew is irrelevant. Did you download a source distribution of sage? Then you have to build it first, and there are some prerequisites. Probably the easiest way to install sage is via a binary distribution. See http://doc.sagemath.org/html/en/insta... . The installation guide also has instructions for building from source.

Please follow up if this doesn't help.

nbruin gravatar imagenbruin ( 2019-11-25 01:50:57 +0100 )edit

How did you install Sage?

Iguananaut gravatar imageIguananaut ( 2019-11-25 12:47:17 +0100 )edit