【服务器】在 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
相关推荐
YUS云生18 分钟前
Python学习笔记·第31天:FastAPI入门——路由、路径参数、查询参数与请求体
笔记·python·学习
玖玥拾31 分钟前
C# 语言进阶(十五)C# 游戏服务端 MySQL 数据库
服务器·开发语言·网络·数据库·mysql·c#
智写-AI40 分钟前
真实有效的免费降英文AI工具服务商
人工智能·python
大鹏的NLP博客41 分钟前
深度学习模型部署一致性验证规范
人工智能·深度学习
土星云SaturnCloud1 小时前
边缘计算驱动绿氢生产过程智能寻优:电解槽级实时优化技术解析
服务器·人工智能·ai·边缘计算
Darkwanderor1 小时前
对Linux的进程控制的研究
linux·运维·c++
yuhuofei20211 小时前
【Python入门】了解掌握Python中函数的基本使用
python
Web极客码2 小时前
突破并发瓶颈:云端高性能架构如何赋能海外 AI Agent 矩阵的高效产出
服务器·人工智能·架构
一个有温度的技术博主2 小时前
【VulnHub 实战】DC-1 靶机渗透测试笔记(一):信息收集与主机发现
服务器·网络·笔记