Ask Your Question

hongkai.yu's profile - activity

2024-12-13 16:58:39 +0200 received badge  Famous Question (source)
2022-05-24 14:58:56 +0200 received badge  Notable Question (source)
2022-05-24 14:58:56 +0200 received badge  Popular Question (source)
2020-09-18 02:13:39 +0200 received badge  Student (source)
2020-09-17 03:14:30 +0200 asked a question SAGE_ROOT error when start the program

Hi,

I have installed sage via Conda. It worked alright after the installation. Then I hadn't used Sage for a while until today. Now when I tried to run sage. I encountered an error message:

[I] ~ ❯❯❯ conda activate sage (base) [I] ~ ❯❯❯ sage (sage) Error: You must set the SAGE_ROOT environment variable or run this script from the SAGE_ROOT or SAGE_ROOT/local/bin/ directory. Error setting environment variables by sourcing '/Users/Hongkai_Yu/opt/anaconda3/envs/sage/bin/sage-env'; possibly contact sage-devel And even if I entered the bin directory of Sage, the same problem persists.

[I] ~ ❯❯❯ cd opt/anaconda3/envs/sage/bin/ (sage) [I] ~/o/a/e/s/bin ❯❯❯ ./sage (sage) Error: You must set the SAGE_ROOT environment variable or run this script from the SAGE_ROOT or SAGE_ROOT/local/bin/ directory. Error setting environment variables by sourcing './sage-env'; possibly contact sage-devel

I don't remember I have ever set the Sage environment variables.

I would appreciate it if anyone can help me with this. Thanks in advance!