Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
517 views
in Technique[技术] by (71.8m points)

python 3.x - Installing sage in conda

So I have anaconda installed on windows which I assume is just as good as miniconda and after following the instructions here https://doc.sagemath.org/html/en/installation/conda.html I get the following output.

 The following packages are not available from current channels:

  - sage

Current channels:

  - https://conda.anaconda.org/conda-forge/win-64
  - https://conda.anaconda.org/conda-forge/noarch
  - https://repo.anaconda.com/pkgs/main/win-64
  - https://repo.anaconda.com/pkgs/main/noarch
  - https://repo.anaconda.com/pkgs/r/win-64
  - https://repo.anaconda.com/pkgs/r/noarch
  - https://repo.anaconda.com/pkgs/msys2/win-64
  - https://repo.anaconda.com/pkgs/msys2/noarch

To search for alternate channels that may provide the conda package you're
looking for, navigate to

    https://anaconda.org

and use the search bar at the top of the page.

I found https://anaconda.org/conda-forge/sage, but the install options tell me either I need to change my conda settings and further I don't understand or gives me this error again

question from:https://stackoverflow.com/questions/65864743/installing-sage-in-conda

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

From the conda URLs in the error message, it looks like OP is using Windows. Sage does not support installation via conda on windows:

SageMath can be installed from conda-forge on Linux and macOS running x86-64 that most current desktops and laptops use.

If you look at the sage files on https://anaconda.org/conda-forge/sage/files, only macOS and linux packages are listed.

See Sage's instructions for installing on Windows. That points you to https://github.com/sagemath/sage-windows/releases, which offer installer packages for sage on Windows.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...