Ubuntu Server 24.04|22.04|20.04|18.04 安裝 Anaconda

Ubuntu Server 24.04|22.04|20.04|18.04 安裝 Anaconda

iBonnie_愛邦尼-avatar-img
發佈於AI領域展開 個房間
更新於 發佈於 閱讀時間約 4 分鐘
sudo apt-get install libgl1-mesa-glx libegl1-mesa libxrandr2 libxrandr2 libxss1 libxcursor1 libxcomposite1 libasound2 libxi6 libxtst6


安裝版本查找:

https://repo.anaconda.com/archive/


取得Anaconda3-2024.02-1-Linux-x86_64.sh

curl -O https://repo.anaconda.com/archive/Anaconda3-2024.02-1-Linux-x86_64.sh

賦予執行

bash Anaconda3-2024.02-1-Linux-x86_64.sh

同意license terms

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


安裝目錄

Anaconda3 will now be installed into this location:
/home/business/anaconda3

- Press ENTER to confirm the location
- Press CTRL-C to abort the installation
- Or specify a different location below

[/home/business/anaconda3] >>>


建議按yes讓他初始化

You can undo this by running `conda init --reverse $SHELL`? [yes|no]
[no] >>> yes


安裝完成

==> For changes to take effect, close and re-open your current shell. <==
Thank you for installing Anaconda3!


重新進入後

source ~/.bashrc


測試安裝成功與否

conda list
# packages in environment at /home/business/anaconda3:
#
# Name Version Build Channel
_anaconda_depends 2024.02 py311_mkl_1
_libgcc_mutex 0.1 main
_openmp_mutex 5.1 1_gnu
abseil-cpp 20211102.0 hd4dd3e8_0
aiobotocore 2.7.0 py311h06a4308_0
aiohttp 3.9.3 py311h5eee18b_0
aioitertools 0.7.1 pyhd3eb1b0_0
aiosignal 1.2.0 pyhd3eb1b0_0
alabaster 0.7.12 pyhd3eb1b0_0
altair 5.0.1 py311h06a4308_0
...........

有上面那些訊息就成功! 


測試python

python

Python 3.11.7 (main, Dec 15 2023, 18:12:31) [GCC 11.2.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>>





ref:

https://docs.anaconda.com/free/anaconda/install/linux/

avatar-img
iBonnie_愛邦尼
5會員
78內容數
記錄生活與技術的小細節
留言
avatar-img
留言分享你的想法!
iBonnie_愛邦尼 的其他內容
nano /etc/security/faillock.conf ======================= audit silent no_log_info deny = 3 fail_interval = 3600 unlock_time = 3600 even_deny_root root
首先檢查DNS 通常在這邊: sudo nano /etc/resolv.conf 如果沒看到熟悉的168.95.1.1,8.8.8.8這種 就加一下吧 TRY一下 可以就正常了 如果還不行 就把http://tw.archive.ubuntu.com 換成 http://arch
眾所皆知,Server版本是沒有內建桌面的。但有時候我們就是想要裝了server後又需要桌面,怎麼辦呢? 開始吧: sudo apt update sudo apt upgrade Display Manager安裝與選擇: GDM3、SLiM、LightDM都是選項; 我們用 SLiM
nano /etc/security/faillock.conf ======================= audit silent no_log_info deny = 3 fail_interval = 3600 unlock_time = 3600 even_deny_root root
首先檢查DNS 通常在這邊: sudo nano /etc/resolv.conf 如果沒看到熟悉的168.95.1.1,8.8.8.8這種 就加一下吧 TRY一下 可以就正常了 如果還不行 就把http://tw.archive.ubuntu.com 換成 http://arch
眾所皆知,Server版本是沒有內建桌面的。但有時候我們就是想要裝了server後又需要桌面,怎麼辦呢? 開始吧: sudo apt update sudo apt upgrade Display Manager安裝與選擇: GDM3、SLiM、LightDM都是選項; 我們用 SLiM