kali2024安装sagemath避坑指南
- 安装遇到的问题
- Install from conda-forge
- 使用mamba安装sage
安装遇到的问题
刚开始使用sudo apt -y install sagemath和源码安装遇到各种包冲突,有的还涉及到系统底层包,没有避开。然后尝试使用mamba安装成功,sage也能使用了。做个记录与大家分享一下,大家有好方法欢迎留言交流。
Install from conda-forge
curl -L -O "https://github.com/conda-forge/miniforge/releases/latest/download/Miniforge3-$(uname)-$(uname -m).sh"
bash Miniforge3-$(uname)-$(uname -m).sh
1、curl -L -O “https://github.com/conda-forge/miniforge/releases/latest/download/Miniforge3- ( u n a m e ) − (uname)- (uname)−(uname -m).sh”
2、bash Miniforge3- ( u n a m e ) − (uname)- (uname)−(uname -m).sh
3、yes同意协议
4、安装目录直接默认安装,按回车
5、直接yes
使用mamba安装sage
mamba create -n sage sage python=X
1、查看Python版本
python -V
2、执行mamba create -n sage sage python=3.11.6安装
3、安装mamba
"${SHELL}" <(curl -L micro.mamba.pm/install.sh)
4、打开新的终端,再次执行mamba create -n sage sage python=3.11.6等待安装sage即可
5、安装成功!
参考地址:
https://doc.sagemath.org/html/en/installation/conda.html#/sec-installation-conda-develop
https://mamba.readthedocs.io/en/latest/installation/micromamba-installation.html#/
https://medium.com/@kaloyanmanev/install-sagemath-on-kali-linux-94f2caf2652f
https://doc.sagemath.org/html/en/installation/index.html
https://doc.sagemath.org/html/en/installation/source.html#sec-installation-from-sources