更新於 2024/07/16閱讀時間約 4 分鐘

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

    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/

    分享至
    成為作者繼續創作的動力吧!
    © 2025 vocus All rights reserved.