centos7 安装miniconda

1.先下载安装脚本

bash 复制代码
wget https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh

2.开始安装

bash 复制代码
bash Miniconda3-latest-Linux-x86_64.sh -b -p ~/miniconda3

-b: 以批处理模式安装,无需交互

-p:安装目录(不用提前创建)

3.添加环境变量

3.1针对用户

bash 复制代码
echo 'export PATH="/opt/miniconda3/bin:$PATH"' >> ~/.bashrc

3.2针对所有用户

bash 复制代码
echo 'export PATH="/opt/miniconda3/bin:$PATH"' >> /etc/profile

4.检查安装

bash 复制代码
# 命令
conda --version
# 结果
conda 23.9.0

5.初始化

bash 复制代码
source ~/.bashrc    # 单个用户
source /etc/profile # 全局用户
conda init bash     # 初始化
conda activate base   # 激活base环境
conda create -n common python=3.10  # 创建一个名为common的python版本为3.10的环境
相关推荐
人工智能AI酱6 分钟前
【AI深究】逻辑回归(Logistic Regression)全网最详细全流程详解与案例(附大量Python代码演示)| 数学原理、案例流程、代码演示及结果解读 | 决策边界、正则化、优缺点及工程建议
人工智能·python·算法·机器学习·ai·逻辑回归·正则化
WangLanguager8 分钟前
逻辑回归(Logistic Regression)的详细介绍及Python代码示例
python·算法·逻辑回归
wefly201712 分钟前
m3u8live.cn 在线M3U8播放器,免安装高效验流排错
前端·后端·python·音视频·前端开发工具
ZTLJQ13 分钟前
深入理解逻辑回归:从数学原理到实战应用
开发语言·python·机器学习
deepxuan34 分钟前
Day1--python三大库-Pandas
人工智能·python·pandas
嫂子的姐夫36 分钟前
042-spiderbuf第C7题
爬虫·python·逆向
2403_835568471 小时前
自然语言处理(NLP)入门:使用NLTK和Spacy
jvm·数据库·python
剑穗挂着新流苏3121 小时前
Pytorch加载数据
python·深度学习·transformer
qq_452396231 小时前
【Python × AI】多智能体协作:从 AutoGPT 到 CrewAI 的组织进化论
大数据·人工智能·python·ai
guhy fighting1 小时前
pycharm 切换版本和窗口cmd看到的版本不一致问题解决
ide·python·pycharm