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!