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

Linux(centos, ubuntu) 快速安装anaconda;5秒安装anaconda

1.下载Anaconda安装脚本:

首先,访问Anaconda的官方下载页面:https://www.anaconda.com/products/distribution
在页面上,选择适用于Linux的Python 3.x版本的Anaconda安装脚本。也可以使用wget或curl命令从终端下载。示例:

wget https://repo.anaconda.com/archive/Anaconda3-2023.09-0-Linux-x86_64.sh

2.执行安装脚本

有两种方式:
第一种:

bash Anaconda3-2023.09-0-Linux-x86_64.sh

第二种:

-- 让脚本可执行
chmod +x Anaconda3-2023.09-0-Linux-x86_64.sh
-- 执行脚本
./Anaconda3-2023.09-0-Linux-x86_64.sh

3.安装过程

1.查看安装协议,按下enter查看,如果enter之后不想查看,直接ctrl+c即可到下一步

In order to continue the installation process, please review the license
agreement.
Please, press ENTER to continue
>>> 

2.是否接受协议,输入yes

Do you accept the license terms? [yes|no]
[no] >>> yes

3.选择安装目录,有三种选择

  • 按下enter直接安装到/root/anaconda3目录下
  • 按下ctrl+c退出安装
  • 指定安装位置,输入自己的安装路径;如果只输入了一个目录,则会安装到执行命令的目录下。
Anaconda3 will now be installed into this location:
/root/anaconda3

  - Press ENTER to confirm the location
  - Press CTRL-C to abort the installation
  - Or specify a different location below

[/root/anaconda3] >>> anaconda

4.是否自动化conda环境

大致内容如下:

  • 每次启动终端,是否自动激活conda环境,默认环境通常是base,
  • 自动激活会更新系统配置文件,启动终端时,会提示你激活的是哪个conda环境
  • 如果不希望每次启动终端都激活conda环境,执行命令:conda config --set auto_activate_base false
  • 如果开始选择自动化初始conda,但后来不决定这么做,可以执行命令:conda init --reverse $SHELL
installation finished.
Do you wish to update your shell profile to automatically initialize conda?
This will activate conda on startup and change the command prompt when activated.
If you'd prefer that conda's base environment not be activated on startup,
   run the following command when conda is activated:

conda config --set auto_activate_base false

You can undo this by running `conda init --reverse $SHELL`? [yes|no]
[no] >>> yes

5.测试安装

重新打开窗口,验证conda是否安装成功

conda list

安装anaconda后,就可以使用conda来创建新的环境、安装包、更新包等。anaconda可能会占用大量磁盘空间,它包含了许多预安装的库,如果不需要预安装很多库,可以使用miniconda。

相关文章:

  • 记录hive/spark取最新且不为null的方法
  • 关于Android studio新版本和NEW UI显示返回按钮的设置
  • Flutter的BuildContext简介
  • 【排序算法】之堆排序
  • L1-025:正整数A+B
  • 深入理解RBAC权限系统
  • K8s 入门指南(一):单节点集群环境搭建
  • Spring--10--Spring Bean的生命周期
  • mac安装elasticsearch8.x
  • Android 顶部对齐宽度撑满高度等比例缩放及限制最大最小高度
  • 从互联网到云计算再到 AI 原生,百度智能云数据库的演进
  • MySQL执行语句 Table ‘mysql.servers‘ doesn‘t exist
  • Python爬取酷我音乐
  • 贵州开放大学形成性考核 平时作业 参考试题
  • Error opening file for writing报错解决
  • RocketMQ-RocketMQ高性能核心原理节点(流程图)
  • C++基础 -42- STL库之list链表
  • python:六种算法(DBO、RFO、WOA、GWO、PSO、GA)求解23个测试函数(python代码)
  • 从零开始搭建企业管理系统(六):RBAC 权限管理设计
  • 阿里云docker加速
  • 拿出压箱底作品,北京交响乐团让上海观众享受音乐盛宴
  • 习近平会见缅甸领导人敏昂莱
  • 深圳两家会所涉卖淫嫖娼各被罚7万元逾期未缴,警方发催告书
  • 开局良好,我国第一季度广告业务收入保持较快增速
  • 七大交响乐团“神仙斗法”,时代交响在上海奏出时代新声
  • 招行:拟出资150亿元全资发起设立金融资产投资公司