linux-centOS7安裝anaconda3

一、 下載個(gè)anaconda。地址:https://www.continuum.io/downloads。下載Anaconda3-5.1.0-Linux-x86_64.sh,注:本機(jī)為64位系統(tǒng)。

二、上傳Anaconda3-5.1.0-Linux-x86_64.sh至虛擬機(jī)centOS7的home目錄下。

三、輸入命令:bash Anaconda3-5.1.0-Linux-x86_64.sh

```

[root@vultr home]# bash Anaconda3-5.1.0-Linux-x86_64.sh

WARNING: bzip2 does not appear to be installed this may cause problems below

Welcome to Anaconda3 5.1.0

In order to continue the installation process, please review the license

agreement.

Please, press ENTER to continue

>>>

```

“回車(chē)”繼續(xù),然后窗口會(huì)出現(xiàn)一堆文字介紹License的,按“空格”往下翻。

```

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

[no] >>>

```

輸入yes回車(chē)

```

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] >>>

```

回車(chē),默認(rèn)路徑。結(jié)果出錯(cuò)bunzip2: command not found

```

[/root/anaconda3] >>>

PREFIX=/root/anaconda3

Anaconda3-5.1.0-Linux-x86_64.sh: line 350: bunzip2: command not found

tar: This does not look like a tar archive

tar: Exiting with failure status due to previous errors

```

安裝bunzip2解決```yum install -y bzip2```,按照前面的步驟重新安裝anaconda3。

```

installation finished.

Do you wish the installer to prepend the Anaconda3 install location

to PATH in your /root/.bashrc ? [yes|no]

[no] >>>

```

輸入yes

```

Appending source /root/anaconda3/bin/activate to /root/.bashrc

A backup will be made to: /root/.bashrc-anaconda3.bak

For this change to become active, you have to open a new terminal.

Thank you for installing Anaconda3!

```

Anaconda3安裝成功

但仍會(huì)詢問(wèn)是否安裝VSCode,輸入no即可。

```

Do you wish to proceed with the installation of Microsoft VSCode? [yes|no]

>>>

```

輸入no

最后,記得生效.bashrc文件

```source ~/.bashrc```

安裝結(jié)束

?著作權(quán)歸作者所有,轉(zhuǎn)載或內(nèi)容合作請(qǐng)聯(lián)系作者
【社區(qū)內(nèi)容提示】社區(qū)部分內(nèi)容疑似由AI輔助生成,瀏覽時(shí)請(qǐng)結(jié)合常識(shí)與多方信息審慎甄別。
平臺(tái)聲明:文章內(nèi)容(如有圖片或視頻亦包括在內(nèi))由作者上傳并發(fā)布,文章內(nèi)容僅代表作者本人觀點(diǎn),簡(jiǎn)書(shū)系信息發(fā)布平臺(tái),僅提供信息存儲(chǔ)服務(wù)。

相關(guān)閱讀更多精彩內(nèi)容

友情鏈接更多精彩內(nèi)容