William, do the instructions in our Installation Guide work for you? https://deploy-livedoc--sagemath.netlify.app/html/en/installation/conda#install-from-conda-forge
Note in particular this step: "Change channel priority to strict: conda config --set channel_priority strict" On Sunday, March 10, 2024 at 12:36:47 PM UTC-7 William Stein wrote: > Hi, > > I just tried installing sage via conda and it's broken. Am I doing > something wrong, or is there any automated testing of sage in conda (which > might be a good thing to have)? I was going to publicize sage+conda in a > post I was about to make, but won't... > > 1. Install mambaforge into Ubuntu > 2. Add conda-forge channel > 3. Install the "sage" package. > 4. It appears to install but is broken, evidently maybe due to a libgsl > dependency (not sure): > > user@compute-server-1540:anaconda$ sage -sh > ... > (sage-sh) user@compute-server-1540:anaconda$ python > Python 3.11.6 | packaged by conda-forge | (main, Oct 3 2023, 10:40:35) > [GCC 12.3.0] on linux > Type "help", "copyright", "credits" or "license" for more information. > >>> import sage.all > Traceback (most recent call last): > File "<stdin>", line 1, in <module> > File "/conda/envs/default/lib/python3.11/site-packages/sage/all.py", > line 75, in <module> > from sage.misc.all import * # takes a while > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ > File > "/conda/envs/default/lib/python3.11/site-packages/sage/misc/all.py", line > 62, in <module> > from .functional import (additive_order, > File > "/conda/envs/default/lib/python3.11/site-packages/sage/misc/functional.py", > line 26, in <module> > from sage.rings.complex_double import CDF > ImportError: libgsl.so.25: cannot open shared object file: No such file or > directory > >>> > sage: > > (compute-server-1540) ~/anaconda$ sage > ┌────────────────────────────────────────────────────────────────────┐ > │ SageMath version 10.1, Release Date: 2023-08-20 │ > │ Using Python 3.11.6. Type "help()" for help. │ > └────────────────────────────────────────────────────────────────────┘ > ┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┓ > ┃ Warning: sage.all is not available; this is a limited REPL. ┃ > ┗━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┛ > sage: factor(2024) > --------------------------------------------------------------------------- > NameError Traceback (most recent call last) > Cell In[1], line 1 > ----> 1 factor(Integer(2024)) > > NameError: name 'factor' is not defined > sage: > > > > William > > -- > William (http://wstein.org) > -- You received this message because you are subscribed to the Google Groups "sage-devel" group. To unsubscribe from this group and stop receiving emails from it, send an email to sage-devel+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/sage-devel/2fa5b435-2aa8-4303-8c13-048660e19380n%40googlegroups.com.