1.下载miniconda

wget https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh

[root@home]# wget https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh
--2025-04-03 16:58:46--  https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh
Resolving proxy.cn.ali.cloud.bmw (proxy.cn.ali.cloud.bmw)... 10.85.0.241
Connecting to proxy.cn.ali.cloud.bmw (proxy.cn.ali.cloud.bmw)|10.85.0.241|:8080... connected.
Proxy request sent, awaiting response... 200 OK
Length: 154615621 (147M) [application/octet-stream]
Saving to: ‘Miniconda3-latest-Linux-x86_64.sh’

100%[===================================================================================================================================>] 154,615,621 18.0MB/s   in 9.4s   

2025-04-03 16:58:56 (15.7 MB/s) - ‘Miniconda3-latest-Linux-x86_64.sh’ saved [154615621/154615621]

2.安装

chmod +x Miniconda3-latest-Linux-x86_64.sh
./Miniconda3-latest-Linux-x86_64.sh
[root@ home] chmod +x Miniconda3-latest-Linux-x86_64.sh
[root@ home] ./Miniconda3-latest-Linux-x86_64.sh

Welcome to Miniconda3 py312_25.1.1-2

In order to continue the installation process, please review the license
agreement.
Please, press ENTER to continue
>>> 
>

Do you accept the license terms? [yes|no]

Please answer 'yes' or 'no':'
>>> yes

3.激活环境

source ~/.bashrc

4.创建

conda create -n myenv python=3.9
打开
conda activate myenv
关闭
conda deactivate
Logo

魔乐社区(Modelers.cn) 是一个中立、公益的人工智能社区,提供人工智能工具、模型、数据的托管、展示与应用协同服务,为人工智能开发及爱好者搭建开放的学习交流平台。社区通过理事会方式运作,由全产业链共同建设、共同运营、共同享有,推动国产AI生态繁荣发展。

更多推荐