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的环境
相关推荐
小白菜又菜17 小时前
Leetcode 235. Lowest Common Ancestor of a Binary Search Tree
python·算法·leetcode
Omigeq18 小时前
1.2.2 - 采样搜索算法(以RRT和RRT*为例) - Python运动规划库教程(Python Motion Planning)
开发语言·人工智能·python·机器人
凌云拓界18 小时前
TypeWell全攻略(二):热力图渲染引擎,让键盘发光
前端·后端·python·计算机外设·交互·pyqt·数据可视化
小白菜又菜18 小时前
Leetcode 234. Palindrome Linked List
python·算法·leetcode
恒云客18 小时前
python uv debug launch.json
数据库·python·json
Katecat9966318 小时前
YOLO11-SEG-AFPN-P345改进采血装置检测与识别系统
python
q12345678909818 小时前
FNN sin predict
开发语言·python
先做个垃圾出来………19 小时前
Python字节串“b“前缀
开发语言·python
dreams_dream19 小时前
什么是迭代器和生成器
python
悠闲蜗牛�19 小时前
深入浅出Spring Boot 3.x:新特性全解析与实战指南
开发语言·python