Developments/Python

Linux에 Anaconda 설치하기

Meuse 2024. 3. 23. 11:03
반응형
2024. 03. 23. 업데이트 된 내용입니다.

 

1. 최신버전 확인하기

 

Free Download | Anaconda

Anaconda's open-source Distribution is the easiest way to perform Python/R data science and machine learning on a single machine.

www.anaconda.com

자신의 Linux에 맞는 설치파일 링크를 복사합니다.

 

2. 다운로드

[ec2-user ~]$ wget https://repo.anaconda.com/archive/Anaconda3-2024.02-1-Linux-x86_64.sh
--2024-03-23 02:03:51--  https://repo.anaconda.com/archive/Anaconda3-2024.02-1-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: 1045673900 (997M) [application/octet-stream]
Saving to: ‘Anaconda3-2024.02-1-Linux-x86_64.sh’

Anaconda3-2024.02-1-Linux-x86 100%[=================================================>] 997.23M  60.1MB/s    in 14s

2024-03-23 02:04:05 (71.8 MB/s) - ‘Anaconda3-2024.02-1-Linux-x86_64.sh’ saved [1045673900/1045673900]

 

 

3. 설치하기

[ec2-user ~]$ bash Anaconda3-2024.02-1-Linux-x86_64.sh

Welcome to Anaconda3 2024.02-1

In order to continue the installation process, please review the license
agreement.
Please, press ENTER to continue
>>>
END USER LICENSE AGREEMENT

............

15.12 ENTIRE AGREEMENT. This EULA (including all Orders) constitutes the entire agreement, and supersedes all prior
negotiations, understandings, or agreements (oral or written), between the Parties regarding the subject matter of this
EULA (and all past dealing or industry custom). Any inconsistent or additional terms on any related Customer-issued
purchase orders, vendor forms, invoices, policies, confirmation, or similar form, even if signed by the Parties
hereafter, will have no effect under this EULA. In the event of any conflict between the terms of this EULA and the
terms of any Order, the terms of this EULA will control unless otherwise explicitly set forth in an Order. This EULA may
be executed in one or more counterparts, each of which will be an original, but taken together constituting one and the
same instrument. Execution of a facsimile/electronic copy will have the same force and effect as execution of an
original, and a facsimile/electronic signature will be deemed an original and valid signature. No modification, consent
or waiver under this EULA will be effective unless in writing and signed by both Parties. The failure of either Party to
enforce its rights under this EULA at any time for any period will not be construed as a waiver of such rights. If any
provision of this EULA is determined to be illegal or unenforceable, that provision will be limited or eliminated to the
minimum extent necessary so that this EULA will otherwise remain in full force and effect and enforceable.

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

Anaconda3 will now be installed into this location:
/home/ec2-user/anaconda3

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

[/home/ec2-user/anaconda3] >>>
PREFIX=/home/ec2-user/anaconda3
Unpacking payload ...

............

Preparing transaction: done
Executing transaction: /

    Installed package of scikit-learn can be accelerated using scikit-learn-intelex.
    More details are available here: https://intel.github.io/scikit-learn-intelex

    For example:

        $ conda install scikit-learn-intelex
        $ python -m sklearnex my_application.py



done
installation finished.
Do you wish to update your shell profile to automatically initialize conda?
This will activate conda on startup and change the command prompt when activated.
If you'd prefer that conda's base environment not be activated on startup,
   run the following command when conda is activated:

conda config --set auto_activate_base false

You can undo this by running `conda init --reverse $SHELL`? [yes|no]
[no] >>> yes
no change     /home/ec2-user/anaconda3/condabin/conda
no change     /home/ec2-user/anaconda3/bin/conda
no change     /home/ec2-user/anaconda3/bin/conda-env
no change     /home/ec2-user/anaconda3/bin/activate
no change     /home/ec2-user/anaconda3/bin/deactivate
no change     /home/ec2-user/anaconda3/etc/profile.d/conda.sh
no change     /home/ec2-user/anaconda3/etc/fish/conf.d/conda.fish
no change     /home/ec2-user/anaconda3/shell/condabin/Conda.psm1
no change     /home/ec2-user/anaconda3/shell/condabin/conda-hook.ps1
no change     /home/ec2-user/anaconda3/lib/python3.11/site-packages/xontrib/conda.xsh
no change     /home/ec2-user/anaconda3/etc/profile.d/conda.csh
modified      /home/ec2-user/.bashrc

==> For changes to take effect, close and re-open your current shell. <==

Thank you for installing Anaconda3!

 

yes를 2번 입력하니 설치가 완료 되었습니다.

 

SSH를 다시 연결해 주세요..

 

 

4. 버전 확인

(base) [ec2-user ~]$ python --version
Python 3.11.7

(base) [ec2-user ~]$ conda --version
conda 24.1.2

(base) [ec2-user ~]$ pip --version
pip 23.3.1 from /home/ec2-user/anaconda3/lib/python3.11/site-packages/pip (python 3.11)

 

 

5. 업데이트

(base) [ec2-user ~]$ conda update -n base conda
conda 24.1.2 -> 24.3.0

(base) [ec2-user ~]$ conda update --all
반응형

'Developments > Python' 카테고리의 다른 글

Python 반올림, 올림, 내림, 버림  (0) 2022.05.15
Anaconda 가상환경 설정  (0) 2022.05.13