其他分享
首页 > 其他分享> > ununtu安装anaconda

ununtu安装anaconda

作者:互联网

1.官网上下载安装包:

https://anaconda.cloud/installers

2.使用xftp等工具上传到服务节点,运行安装包

sh Anaconda3-2022.05-Linux-x86_64.sh

安装时根据提示按Enter键或输入"yes";

如下提示时输入自定义安装目录:

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

3.设置环境变量

vi编辑/etc/profile,设置环境变量

export PATH=$PATH:/home/dev/anaconda3/bin

保存退出,并运行配置文件

source /etc/profile

 4.验证是否安装成功

输入 conda --version 命令,查看安装版本

root@ecs-df00:/home/dev# conda --version
conda 4.12.0

输入 conda info 命令可查看安装信息

root@ecs-df00:/home/dev# conda info

     active environment : None
       user config file : /root/.condarc
 populated config files : 
          conda version : 4.12.0
    conda-build version : 3.21.8
         python version : 3.9.12.final.0
       virtual packages : __linux=5.4.0=0
                          __glibc=2.31=0
                          __unix=0=0
                          __archspec=1=x86_64
       base environment : /home/dev/anaconda3  (writable)
      conda av data dir : /home/dev/anaconda3/etc/conda
  conda av metadata url : None
           channel URLs : https://repo.anaconda.com/pkgs/main/linux-64
                          https://repo.anaconda.com/pkgs/main/noarch
                          https://repo.anaconda.com/pkgs/r/linux-64
                          https://repo.anaconda.com/pkgs/r/noarch
          package cache : /home/dev/anaconda3/pkgs
                          /root/.conda/pkgs
       envs directories : /home/dev/anaconda3/envs
                          /root/.conda/envs
               platform : linux-64
             user-agent : conda/4.12.0 requests/2.27.1 CPython/3.9.12 Linux/5.4.0-100-generic ubuntu/20.04.4 glibc/2.31
                UID:GID : 0:0
             netrc file : None
           offline mode : False

 

标签:root,dev,ununtu,conda,pkgs,anaconda,home,安装
来源: https://www.cnblogs.com/chencoolandclear/p/16560077.html