Anaconda是一个免费开源的Python和R语言的发行版本,用于计算科学(数据科学、机器学习、大数据处理和预测分析),Anaconda致力于简化软件包管理系统和部署。Anaconda的包使用软件包管理系统Conda进行管理。超过1200万人使用Anaconda发行版本,并且Anaconda拥有超过1400个适用于Windows、Linux和MacOS的数据科学软件包。 -wikipedia

安装

  • 下载

  • 安装(Linux)

    • 授权并执行

      # 给下载的sh文件执行权限
      chmod a+x Anaconda3-2021.05-Linux-x86_64.sh
      # 执行安装文件
      ./Anaconda3-2021.05-Linux-x86_64.sh
    • 安装输出日志

      Welcome to Anaconda3 2021.05
      
      In order to continue the installation process, please review the license
      agreement.
      Please, press ENTER to continue
      >>> 按回车键(ENTER)继续
      ===================================
      End User License Agreement - Anaconda Individual Edition
      =================================== Copyright 2015-2021, Anaconda, Inc. All rights reserved under the 3-clause BSD License:
      ...
      ... license日志
      ... The following packages listed on https://www.anaconda.com/cryptography are inclu
      ded in the repository accessible through Anaconda Individual Edition that relate
      to cryptography. Last updated April 5, 2021 Do you accept the license terms? [yes|no]
      [no] >>> yes (yes接受继续,no拒绝退出安装) Anaconda3 will now be installed into this location:
      /home/noname/anaconda3 - Press ENTER to confirm the location
      - Press CTRL-C to abort the installation
      - Or specify a different location below [/home/noname/anaconda3] >>> /usr/envs/anaconda3 (此处可自定义安装路径,不填则为默认路径,一般在用户根目录)
      PREFIX=/usr/envs/anaconda3
      Unpacking payload ...
      Collecting package metadata (current_repodata.json): done
      Solving environment: done ## Package Plan ## environment location: /usr/envs/anaconda3 added / updated specs:
      - _ipyw_jlab_nb_ext_conf==0.1.0=py38_0
      - _libgcc_mutex==0.1=main
      - alabaster==0.7.12=pyhd3eb1b0_0
      ...
      ... anaconda基础环境包安装日志
      ... Preparing transaction: done
      Executing transaction: done
      installation finished.
      Do you wish the installer to initialize Anaconda3
      by running conda init? [yes|no]
      [no] >>> yes (是否初始化)
      no change /usr/envs/anaconda3/condabin/conda
      no change /usr/envs/anaconda3/bin/conda
      no change /usr/envs/anaconda3/bin/conda-env
      no change /usr/envs/anaconda3/bin/activate
      no change /usr/envs/anaconda3/bin/deactivate
      no change /usr/envs/anaconda3/etc/profile.d/conda.sh
      no change /usr/envs/anaconda3/etc/fish/conf.d/conda.fish
      no change /usr/envs/anaconda3/shell/condabin/Conda.psm1
      no change /usr/envs/anaconda3/shell/condabin/conda-hook.ps1
      no change /usr/envs/anaconda3/lib/python3.8/site-packages/xontrib/conda.xsh
      no change /usr/envs/anaconda3/etc/profile.d/conda.csh
      modified /home/noname/.bashrc ==> For changes to take effect, close and re-open your current shell. <== If you'd prefer that conda's base environment not be activated on startup,
      set the auto_activate_base parameter to false: conda config --set auto_activate_base false Thank you for installing Anaconda3! =========================================================================== Working with Python and Jupyter notebooks is a breeze with PyCharm Pro,
      designed to be used with Anaconda. Download now and have the best data
      tools at your fingertips. PyCharm Pro for Anaconda is available at: https://www.anaconda.com/pycharm
  • 配置

    • 初始化[1] Anaconda(安装时初始化了则跳过)

      # 如果如果anaconda安装初始化时,选择的no,那现在应该还用不了conda命令
      # 执行 source $ANACONDA_HOME/bin/activate, 如:
      source /usr/envs/anaconda3/bin/activate
      # 初始化
      conda init
    • 关闭启动时激活Conda基础环境(可选)

      # 如果您不希望在启动时激活Conda基础环境,将AUTO_ACTIVATE_BASE参数设置为FALSE:
      conda config --set auto_activate_base false
    • Anaconda 镜像配置

      点击前往Anaconda 镜像配置

卸载

  • 删除Anaconda 文件夹

    # rm -rf $ANACONDA_HOME,如:
    rm -rf /usr/envs/anaconda3
  • 删除Anaconda 配置

    # 打开配置文件
    vim ~/.bashrc # 删除下面这段配置 # >>> conda initialize >>>
    # !! Contents within this block are managed by 'conda init' !!
    __conda_setup="$('/usr/envs/anaconda3/bin/conda' 'shell.bash' 'hook' 2> /dev/null)"
    if [ $? -eq 0 ]; then
    eval "$__conda_setup"
    else
    if [ -f "/usr/envs/anaconda3/etc/profile.d/conda.sh" ]; then
    . "/usr/envs/anaconda3/etc/profile.d/conda.sh"
    else
    export PATH="/usr/envs/anaconda3/bin:$PATH"
    fi
    fi
    unset __conda_setup
    # <<< conda initialize <<<
  • 更新配置文件

    source ~/.bashrc
    或者 source /etc/profile

Reference


  1. Linux安装anaconda3是否初始化的区别

Anaconda 安装与卸载的更多相关文章

  1. Anaconda安装和卸载+虚拟环境Tensorflow安装以及末尾问题大全(附Anaconda安装包),这一篇就够了!!!

    前言 实话说,在自己亲手捣鼓了一下午加一晚上后,本人深深地感受到了对于"Anaconda安装+虚拟环境Tensorflow安装"里面的坑点之多,再加上目前一些博主的资料有点久远,尤 ...

  2. Python:Anaconda安装虚拟环境到指定路径

    1 曾经的困扰 有段时间,想使用基于不同python版本的anaconda,就直接从官网下载了两个不同的anaconda版本进行安装.刚开始的时候,还觉得也没啥问题.用了一小段时间,在安装其他的第三方 ...

  3. Anaconda 安装、使用

    一.下载: 清华镜像:https://mirrors.tuna.tsinghua.edu.cn/anaconda/archive/ 二.安装: 默认就行,安装路径最好换一下 三.配置环境变量: 控制面 ...

  4. Anaconda 安装和配置

    Anaconda 安装和配置 1. Anaconda 安装 Anaconda说明及安装过程:Anaconda详细安装使用教程 2. Anaconda和Pip源修改 Anaconda源修改:打开Anac ...

  5. Anaconda 安装教程(Win10环境) Tensorflow安装

    序 Python易用,但用好却不易,其中比较头疼的就是包管理和Python不同版本的问题,特别是当你使用Windows的时候.为了解决这些问题,有不少发行版的Python,比如WinPython.An ...

  6. python第三方库安装和卸载

    库的安装与卸载 pip install requests pip uninstall requests 查看安装好的库 pip list   第三方库的各种安装方式如下: 一.包管理器 Python有 ...

  7. Anaconda安装第三方库与pip和conda 添加国内源

    Anaconda安装第三方库 PIP使用命令 Anaconda命令 pip和conda 添加国内源 1:PIP相关命令 卸载 pip uninstall XXX 1.升级pip python -m p ...

  8. MySQL入门——在Linux下安装和卸载MariaDB

    MySQL入门——在Linux下安装和卸载MariaDB 摘要:本文主要学习了如何在Linux系统中安装和卸载MariaDB数据库. 查看有没有安装过MariaDB 使用命令查看有没有安装过: [ro ...

  9. 【环境搭建与软件安装】windows系统基于Anaconda安装tensorflow-gpu

    https://github.com/tensorflow/tensorflow/issues/21832 原来是tensorflow-gpu-1.10.0,准备改为1.9.0试试,同样的问题: 应该 ...

随机推荐

  1. (半课内)信安数基 RSA-OAEP 初探

    在RSA攻击中,存在着"小明文攻击"的方式: 在明文够小时,密文也够小,直接开e次方即可: 在明文有点小时,如果e也较小,可用pow(m,e)=n*k+c穷举k尝试爆破 所以,比如 ...

  2. JVM:内存溢出OOM

    JVM:内存溢出OOM 本笔记是根据bilibili上 尚硅谷 的课程 Java大厂面试题第二季 而做的笔记 经典错误 JVM 中常见的两个 OOM 错误 StackoverflowError:栈溢出 ...

  3. Request failed with status code 500以及自引用循环Self referencing loop detected for property ‘xx‘ with type

    错误Error: Request failed with status code 500 ,调试前端没问题,后端也没问题,还报错"连接超时" 在Network中找到错误Self r ...

  4. 常用Java API:大数类

    摘要 java中的基础数据类型能存储的最大的二进制数是 2 ^ 63 - 1, 对应的十进制数是9223372036854775807,也就是说只要运算过程中会超过这个数,就会造成数据溢出,从而造成错 ...

  5. 虚树 virtual-tree

    我们发现,如果一棵树中真正需要处理的点很少,而总共点数很多时,可以只处理那些需要的点,而忽略其他点. 因此我们可以根据那些需要的点构建虚树,只保留关键点. oi-wiki上对虚树的介绍 我们根据一下方 ...

  6. 排序算法:Java实现希尔排序

    希尔排序的思路是先分组再整合 先对下标进行分组,比如当数组长度为20时,一开始选定一个间隔值为10 对数组进行排序,每隔10个元素比较大小并交换,以下标为间隔,1和11比较.2和12比较......1 ...

  7. iptables 原理及应用

    转自:iptables 原理及应用 iptables是一个Linux下优秀的nat+防火墙工具,我使用该工具以较低配置的传统pc配置了一个灵活强劲的防火墙+nat系统,小有心得,看了网上也有很多这方面 ...

  8. SkyWalking部署及.Net Core简单使用

    SkyWalking官方网站非常详细,以下只是本人学习过程的整理 一.SkyWalking简介 1.概念 SkyWalking是分布式系统的应用程序性能监视工具,专为微服务.云原生架构而设计 SkyW ...

  9. 基于Dapr的 Azure 容器应用

    微软在 Ignite 2021 大会上发布了预览版的Azure Container Apps,这是一个完全托管的无服务器容器运行时间,用于大规模构建和运行现代应用程序.从2021 年 11 月 2 日 ...

  10. fork()和vfork()的区别,signal函数用法,exec()系列函数的用法小结

    一:fork()和vfork()的区别:    fork()函数可以创建子进程,有两个返回值,即调用一次返回两个值,一个是父进程调用fork()后的返回值,该返回值是刚刚创建的子进程的ID;另一个是子 ...