【服务器】在 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
相关推荐
kebidaixu15 小时前
BCU 平台 RS485 驱动适配:从 THVD1406 到 ISO3082
linux
大貔貅喝啤酒15 小时前
Python Requests库教程
自动化测试·python·requests库
杨浦老苏15 小时前
家庭实验室监控仪表盘HomeLab-Monitor
运维·docker·监控·群晖
hai31524754315 小时前
一种通过空间几何转换进行软件编程计算的方式与现有计算的对比
人工智能·深度学习·数学建模·硬件架构·几何学·图论·拓扑学
硅谷秋水15 小时前
HARBOR:一个面向具身智体机器人强化学习的驾驭框架
人工智能·深度学习·机器学习·机器人
copyer_xyf15 小时前
LangChain 调用 LLM
后端·python·agent
回忆2012初秋16 小时前
【Nginx】原理、配置与运维实战(2)
运维·nginx·策略模式
copyer_xyf16 小时前
Prompt 组织管理
后端·python·agent
pythonpioneer16 小时前
PyTorch3D:基于 PyTorch 的高效 3D 深度学习工具库
pytorch·深度学习·其他·3d
shimly12345616 小时前
python3 uvicorn 是啥?
python