Ubuntu20.04中安装anconda

1. 首先切换成root,在root下载安装文件

ubuntu@10-7:~$ su - root

然后输入root的密码(ubuntu系统输入密码不会显示)

Password:

然后会变成下面的样子

root@10-7:~#

2. 获取anaconda下载链接

anaconda官网

右键点击“64-Bit (x86) Installer (581 MB)”,“链接另存为...”

Ubuntu20.04中安装anconda

复制下方的地址:Anaconda3-2021.11-Linux-x86_64.sh

Ubuntu20.04中安装anconda

 3. 下载anaconda安装文件

root@10-7:~# wget -P /tmp https://repo.anaconda.com/archive/Anaconda3-2021.11-Linux-x86_64.sh

 安装完成结果显示如下:

--2021-12-29 19:26:01--  https://repo.anaconda.com/archive/Anaconda3-2021.11-Linux-x86_64.sh
Resolving repo.anaconda.com (repo.anaconda.com)... 104.16.131.3, 104.16.130.3, 2606:4700::6810:8203, ...
Connecting to repo.anaconda.com (repo.anaconda.com)|104.16.131.3|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 608680744 (580M) [application/x-sh]
Saving to: ‘/tmp/Anaconda3-2021.11-Linux-x86_64.sh’

Anaconda3-2021.11-Linux-x86_64.sh              100%[===================================================================================================>] 580.48M  5.82MB/s    in 98s     

2021-12-29 19:27:39 (5.94 MB/s) - ‘/tmp/Anaconda3-2021.11-Linux-x86_64.sh’ saved [608680744/608680744]

4. 安装anaconda安装文件

先进入到保存Anaconda3-2021.11-Linux-x86_64.sh的文件夹

root@10-7:cd /tmp

 开始安装

root@10-7:/tmp# bash Anaconda3-2021.11-Linux-x86_64.sh

显示如下界面

Welcome to Anaconda3 2021.11

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

然后回车,看到如下界面

Ubuntu20.04中安装anconda

 此处是许可证,一路回车,直到:

Do you accept the license terms? [yes|no]
[no] >>> 
Please answer 'yes' or 'no':'

输入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

选择安装位置,然后回车

PREFIX=/root/anaconda3
Unpacking payload ...

等待即可(需要的时间较长,请耐心等候),直到:

ne
installation finished.
Do you wish the installer to initialize Anaconda3
by running conda init? [yes|no]

输入yes

出现下图

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

关闭并重新打开shell

在shell中输入

conda --version

有返回版本信息,说明安装完成

上一篇:mysql报错wait_time问题


下一篇:nn.AdaptiveMaxPool2d 代码测试