1 系統(tǒng)環(huán)境
- 查看系統(tǒng)信息
cat /etc/os-release
2. 查看架構(gòu)
uname -a
# output
# Linux localhost.localdomain 4.18.0-193.28.1.el8_2.x86_64 #1 SMP Thu Oct 22 00:20:22 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux
2 下載安裝包
官方地址: Link文章來(lái)源:http://www.zghlxwxcb.cn/news/detail-770970.html
- 選擇安裝包,右鍵復(fù)制鏈接
- wget 下載:
wget -P [指定安裝路徑] url[url為復(fù)制的鏈接]
wget https://repo.anaconda.com/archive/Anaconda3-2023.09-0-Linux-x86_64.sh
3 安裝
- 運(yùn)行 .sh 安裝腳本
bash Anaconda3-2023.09-0-Linux-x86_64.sh
- Do you accept the license terms? [yes|no]: yes
- Anaconda3 will now be installed into this location: (建議安裝至用戶目錄下)
- You can undo this by running
conda init --reverse $SHELL
? [yes|no]: no(如果這里選擇了 yes,可直接跳至第 4 步)
- 在當(dāng)前 shell 中激活 conda 環(huán)境
- 確定當(dāng)前 shell 的類(lèi)型
echo $SHELL
# output
# /bin/bash
- 下面命令中的
shell.YOUR_SHELL_NAME
改為shell.bash
eval "$(/home/guochenhui/anaconda3/bin/conda shell.YOUR_SHELL_NAME hook)"
- 激活 conda
conda init
- 啟動(dòng)時(shí)不進(jìn)入 conda 的 base 環(huán)境,即需要自己激活相應(yīng)的虛擬環(huán)境
source ~/.bashrc
conda config --set auto_activate_base false
- 驗(yàn)證
source ~/.bashrc
conda env list
文章來(lái)源地址http://www.zghlxwxcb.cn/news/detail-770970.html
到了這里,關(guān)于【服務(wù)器】在 Linux CLI 下安裝 Anaconda的文章就介紹完了。如果您還想了解更多內(nèi)容,請(qǐng)?jiān)谟疑辖撬阉鱐OY模板網(wǎng)以前的文章或繼續(xù)瀏覽下面的相關(guān)文章,希望大家以后多多支持TOY模板網(wǎng)!