当前位置: 首页 > news >正文

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

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

  • 1 系统环境
  • 2 下载安装包
  • 3 安装

1 系统环境

  1. 查看系统信息
cat /etc/os-release

在这里插入图片描述
2. 查看架构

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为复制的链接]
 wget https://repo.anaconda.com/archive/Anaconda3-2023.09-0-Linux-x86_64.sh

3 安装

  1. 运行 .sh 安装脚本
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 的类型
echo $SHELL
# output
# /bin/bash
  • 下面命令中的 shell.YOUR_SHELL_NAME 改为 shell.bash
eval "$(/home/guochenhui/anaconda3/bin/conda shell.YOUR_SHELL_NAME hook)"
  1. 激活 conda
conda init
  1. 启动时不进入 conda 的 base 环境,即需要自己激活相应的虚拟环境
conda config --set auto_activate_base false
  1. 验证

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

conda env list

http://www.lryc.cn/news/182386.html

相关文章:

  • Python中Lambda用法
  • nodejs+vue养老人员活体鉴权服务系统elementui
  • 解决caffe中的python环境安装的问题(补充)
  • 面试常用排序查找算法
  • CUDA C编程权威指南:1.1-CUDA基础知识点梳理
  • 讲讲项目里的仪表盘编辑器(四)分页卡和布局容器组件
  • Qt模块、Qt开发应用程序类型、Qt未来主要市场、Qt6功能普及
  • nodejs+vue高校校图书馆elementui
  • CUDA C编程权威指南:1.2-CUDA基础知识点梳理
  • C语言—位运算符
  • 怎么才能实现一个链接自动识别安卓.apk苹果.ipa手机和win电脑wac电脑
  • zookeeper选举机制
  • vcpkg切换 Visual Studio 版本
  • 运算符重载
  • Llama2-Chinese项目:7-外延能力LangChain集成
  • ES6中数组的扩展
  • 计算机考研 | 2016年 | 计算机组成原理真题
  • Web版Photoshop来了,用到了哪些前端技术?
  • FL Studio21.1.0水果中文官方网站
  • [BJDCTF2020]Mark loves cat
  • @SpringBootApplication注解的理解——如何排除自动装配 分布式情况下如何自动加载 nacos是怎么被发现的
  • HTTP的前世今生
  • 软件测试教程 自动化测试selenium篇(二)
  • JavaSE入门--初始Java
  • leetcode做题笔记160. 相交链表
  • 数学建模Matlab之检验与相关性分析
  • 微服务网关:Spring Cloud Zuul 升级 Spring Cloud Gateway 的核心要点
  • 视频讲解|含可再生能源的热电联供型微网经济运行优化(含确定性和源荷随机两部分代码)
  • 3种等待方式,让你学会Selenium设置自动化等待测试脚本!
  • [Spring] Spring5——AOP 简介