본문 바로가기
IT(Tip)

파이썬 아나콘다(Anaconda) 업데이트 하기

by good4me 2020. 9. 7.

goodthings4me.tistory.com

 

[파이썬 아나콘다(Anaconda) 업데이트 하기]

아나콘다(Anaconda) 최신 라이브러리 확인, 그리고 더 나은 기능을 활용하고싶다면 주기적인 업데이트가 필요하다고 한다.

 

■ 아나콘다 가상환경(base) 업데이트 방법

"시작>프로그램"에서 관리자 권한으로 Anaconda Prompt 실행 후 conda update -n base conda 명령 입력

(base) C:\WINDOWS\system32>conda update -n base conda
Collecting package metadata (current_repodata.json): done
Solving environment: done

## Package Plan ##

  environment location: C:\anaconda3

  added / updated specs:
    - conda


The following packages will be downloaded:

    package                  |      build
    -------------------------|-----------------------------
    conda-4.8.4              |      py38_0         2.9 MB
    ---------------------------------------------------------
                                       Total:         2.9 MB

The following packages will be UPDATED:

  conda                     4.8.3-py38_0 --> 4.8.4-py38_0


Proceed ([y]/n)? y
Downloading and Extracting Packages
conda-4.8.4          | 2.9 MB    |         ############# | 100%
Preparing transaction: done
Verifying transaction: done
Executing transaction: done

(base) C:\>

 

 

■ 전체 패키지(아나콘다 프레임워크) 업데이트를 할 경우

(base) C:\WINDOWS\system32>conda update --all
Collecting package metadata (current_repodata.json): done
Solving environment: done

## Package Plan ##
  environment location: C:\anaconda3
The following packages will be downloaded:

    package                    |            build
    ---------------------------|-----------------
    _anaconda_depends-2020.07  |           py38_0           6 KB
    anaconda-custom            |           py38_1          36 KB
    argon2-cffi-20.1.0         |   py38he774522_1          50 KB
    asn1crypto-1.4.0           |             py_0          80 KB
    autopep8-1.5.4             |             py_0          42 KB
    (중략....)
    pip-20.2.2                 |           py38_0         1.8 MB
    pytest-6.0.1               |           py38_0         444 KB
    python-3.8.5               |       he1778fa_0        15.7 MB
    regex-2020.7.14            |   py38he774522_0         307 KB
    setuptools-49.6.0          |           py38_0         763 KB
    sphinx-3.2.1               |             py_0         1.1 MB
    sphinxcontrib-websupport-1.2.4|             py_0          34 KB
    sqlite-3.33.0              |       h2a8f88b_0         809 KB
    tblib-1.7.0                |             py_0          16 KB
    tqdm-4.48.2                |             py_0          63 KB
    urllib3-1.25.10            |             py_0          98 KB
    zstd-1.4.5                 |       h04227a9_0         456 KB
    ------------------------------------------------------------
                                           Total:        68.3 MB

The following NEW packages will be INSTALLED:

  _anaconda_depends  pkgs/main/win-64::_anaconda_depends-2020.07-py38_0
  argon2-cffi        pkgs/main/win-64::argon2-cffi-20.1.0-py38he774522_1
  iniconfig          pkgs/main/noarch::iniconfig-1.0.1-py_0

The following packages will be UPDATED:

  asn1crypto         pkgs/main/win-64::asn1crypto-1.3.0-py~ --> pkgs/main/noarch::asn1crypto-1.4.0-py_0
  autopep8                                       1.5.3-py_0 --> 1.5.4-py_0
 (중략....)
  pip                                         20.1.1-py38_1 --> 20.2.2-py38_0
  pytest                                       5.4.3-py38_0 --> 6.0.1-py38_0
  python                                   3.8.3-he1778fa_2 --> 3.8.5-he1778fa_0
  regex                             2020.6.8-py38he774522_0 --> 2020.7.14-py38he774522_0
  setuptools                                  49.2.0-py38_0 --> 49.6.0-py38_0
  sphinx                                         3.1.2-py_0 --> 3.2.1-py_0
  sphinxcontrib-web~                             1.2.3-py_0 --> 1.2.4-py_0
  sqlite                                  3.32.3-h2a8f88b_0 --> 3.33.0-h2a8f88b_0
  tblib                                          1.6.0-py_0 --> 1.7.0-py_0
  tqdm                                          4.47.0-py_0 --> 4.48.2-py_0
  urllib3                                       1.25.9-py_0 --> 1.25.10-py_0

The following packages will be DOWNGRADED:

  anaconda                                   2020.07-py38_0 --> custom-py38_1
  zstd                                     1.4.5-ha9fde0e_0 --> 1.4.5-h04227a9_0


Proceed ([y]/n)? y  <-------------- 중간에 진행 여부 묻는다

| DEBUG menuinst_win32:__init__(198): Menu: name: 'Anaconda${PY_VER} ${PLATFORM}', prefix: 'C:\anaconda3', env_name: 'None', mode: 'user', used_mode: 'user'
DEBUG menuinst_win32:create(323): Shortcut cmd is C:\anaconda3\python.exe, args are ['C:\\anaconda3\\cwp.py', 'C:\\anaconda3', 'C:\\anaconda3\\python.exe', 'C:\\anaconda3\\Scripts\\jupyter-notebook-script.py', '"%USERPROFILE%/"']
done

 

good4me.co.kr

 

*설치된 # Anaconda 버전 확인 (2020.8월 현재)
(base) C:\WINDOWS\system32>conda --version   
conda 4.8.4
(base) C:\WINDOWS\system32>

* pip(Pip Installas Packages) 업그레이드 명령
(base) C:\WINDOWS\system32>python -m pip install --upgrade pip
Requirement already up-to-date: pip in c:\anaconda3\lib\site-packages (20.2.2)

* 파이썬 아나콘다(Anaconda) 다운로드
https://www.anaconda.com/products/individual#download-section

 

 

 

댓글