【服务器】在 Linux CLI 下安装 Anaconda

【服务器】在 Linux CLI 下安装 Anaconda

  • [1 系统环境](#1 系统环境)
  • [2 下载安装包](#2 下载安装包)
  • [3 安装](#3 安装)

1 系统环境

  1. 查看系统信息
bash 复制代码
cat /etc/os-release
  1. 查看架构
bash 复制代码
uname -a
# output
# Linux localhost.localdomain 4.18.0-193.28.1.el8_2.x86_64 #1 SMP Thu Oct 22 00:20:22 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux

2 下载安装包

官方地址: Link

  1. 选择安装包,右键复制链接
  2. wget 下载: wget -P [指定安装路径] url[url为复制的链接]
bash 复制代码
 wget https://repo.anaconda.com/archive/Anaconda3-2023.09-0-Linux-x86_64.sh

3 安装

  1. 运行 .sh 安装脚本
bash 复制代码
sh Anaconda3-2023.09-0-Linux-x86_64.sh
  • Do you accept the license terms? yes\|no: yes
  • Anaconda3 will now be installed into this location: (建议安装至用户目录下)
  • You can undo this by running conda init --reverse $SHELL? yes\|no: no
  1. 在当前 shell 中激活 conda 环境
  • 确定当前 shell 的类型
bash 复制代码
echo $SHELL
# output
# /bin/bash
  • 下面命令中的 shell.YOUR_SHELL_NAME 改为 shell.bash
bash 复制代码
eval "$(/home/guochenhui/anaconda3/bin/conda shell.YOUR_SHELL_NAME hook)"
  1. 激活 conda
bash 复制代码
conda init
  1. 启动时不进入 conda 的 base 环境,即需要自己激活相应的虚拟环境
bash 复制代码
conda config --set auto_activate_base false
  1. 验证

关闭当前 shell,重新打开一个

bash 复制代码
conda env list
相关推荐
yyuuuzz3 分钟前
AI模型部署中的常见稳定性问题
运维·服务器·网络·数据库·人工智能·云计算·github
STDD4 分钟前
V Rising《夜族崛起》 专用服务器搭建教程
运维·服务器
Ameilide4 分钟前
Linux 应用软件编程 多任务并发
linux·运维·服务器
cjhbachelor7 分钟前
___信号
linux
Kobebryant-Manba13 分钟前
记录正则化
人工智能·深度学习·机器学习
Sirius Wu18 分钟前
MoE与Fengyu-Dense_架构对比及训练方案
人工智能·深度学习·算法·机器学习·语言模型·架构
daphne odera�25 分钟前
Windows 环境下安装 triton、causal-conv1d 和 mamba-ssm 教程
深度学习·mamba
liulilittle26 分钟前
什么是“单流”?一个服务器上能不能同时存在多个“单流”?
服务器·网络·tcp/ip·计算机网络·信息与通信·tcp·通信
无限进步_32 分钟前
【Linux】环境变量:系统运行参数的“备忘录”
linux·运维·服务器
YYRAN_ZZU34 分钟前
Ubuntu22.04搭建QEMU嵌入式开发环境全攻略
linux·嵌入式硬件·ubuntu