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

asked 5 years ago

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.

Preview: (hide)

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 ( 5 years ago )

How did you install Sage?

Iguananaut gravatar imageIguananaut ( 5 years ago )