其他分享
首页 > 其他分享> > Anaconda 环境管理

Anaconda 环境管理

作者:互联网

Conda是一种通用包管理系统,旨在构建和管理任何语言的任何类型的软件。
Anaconda® 是一个包管理器、一个环境管理器、一个 Python/R 数据科学发行版以及超过 7,500 个开源包的集合。
Miniconda是一个免费软件包,包含 conda 包和环境管理器,但Miniconda不包含 Anaconda、Anaconda Navigator 或安装它所需的依赖项以外的任何包。安装Miniconda后,可以使用 command 直接从命令行界面安装其他 conda 包。
Anaconda Navigator是一个桌面图形用户界面 (GUI),它允许您轻松管理conda包、环境、channels和notebooks,而无需使用命令行界面 (CLI)。
参考:https://docs.anaconda.com/anaconda/navigator/glossary/

conda的安装与使用
Anaconda介绍、安装及使用教程
官方教程

miniconda2自带python2,miniconda3自带python3,安装哪个都一样,只影响所创建环境的根目录;
另一区别在于创建新环境时的默认python版本不同。

There are two variants of the installer: Miniconda is Python 2 based and Miniconda3 is Python 3 based.
Note that the choice of which Miniconda is installed only affects the root environment.
Regardless of which version of Miniconda you install, you can still install both Python 2.x and Python 3.x environments.

The other difference is that the Python 3 version of Miniconda will default to Python 3 when creating new environments and building packages.

安装miniconda

  1. 下载miniconda安装包
    没有特定理由时,尽量选择最新版本,python版本可以后续再补充
  2. 验证安装文件完整性
    sha256sum Miniconda3-latest-Linux-x86_64.sh
    
  3. 安装,一路 Enter + yes
    bash Miniconda3-latest-Linux-x86_64.sh
    
    最后输出:
    ==> 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 Miniconda3!
    
  4. 验证成功安装
    conda list
    
  5. 设置关闭自动激活
    $ conda config --set auto_activate_base false
    
    将以下内容写入.bashrc,以后使用accondadeconda来激活和退出conda环境:
    alias acconda='conda activate base'
    alias deconda='conda deactivate'
    
  6. 清华源阿里云
  7. 安装 Anaconda Navigator
    conda install anaconda-navigator
    

标签:管理器,管理,Python,环境,Miniconda,conda,Anaconda,安装
来源: https://blog.csdn.net/CC977/article/details/122789363