1、miniconda可以从清华镜像源下载(macos 下载适配版本)
Index of /anaconda/miniconda/ | 清华大学开源软件镜像站 | Tsinghua Open Source Mirror
wget https://mirrors.tuna.tsinghua.edu.cn/anaconda/miniconda/Miniconda3-latest-Linux-x86_64.sh
2、在指定路径安装miniconda
(1)运行bash文件
sh Miniconda3-latest-Linux-x86_64.sh
(2)这里需要一直按回车....
user@ubuntu:~/tools$ bash Miniconda3-latest-Linux-x86_64.sh
Welcome to Miniconda3 py39_4.10.3
In order to continue the installation process, please review the license
agreement.
Please, press ENTER to continue
>>>
(3)一直到accept the license,输入”yes",回车(不要多按)
Do you accept the license terms? [yes|no]
[no] >>>
Please answer 'yes' or 'no':'
>>> yes
(4)如果需要指定路径安装,此时输入路径(如下),回车
Miniconda3 will now be installed into this location:
/home/user/miniconda3- Press ENTER to confirm the location
- Press CTRL-C to abort the installation
- Or specify a different location below[/home/user/miniconda3] >>> /home/user/tools/miniconda3
(5)一直到完成,conda init,输入yes
Preparing transaction: done
Executing transaction: done
installation finished.
Do you wish the installer to initialize Miniconda3
by running conda init? [yes|no]
[no] >>> yes
(6)完成安装
==> For changes to take effect, close and re-open your current shell. <==
If you'd prefer that conda's base environment not be activated on startup,
set the auto_activate_base parameter to false:conda config --set auto_activate_base false
Thank you for installing Miniconda3!
3、刷新环境变量(出现base环境)
source ~/.bashrc
source ~/.zshrc(mac)
(base) user@ubuntu:~/tools$