Notice
Recent Posts
Recent Comments
Link
관리 메뉴

Star_project

맥북 아나콘다 가상환경 생성 레퍼런스 본문

기본적인 것들/기본 프로그램 설치 및 다운로드, 환경설정

맥북 아나콘다 가상환경 생성 레퍼런스

star빛 2021. 4. 21. 01:49

터미널 들어가서

(base) 만들기

source ~/.bash_profile

가상환경 만들기

conda create --name minjeong python==3.7

y 선택

Proceed ([y]/n)? y

가상환경 활성화

source activate minjeong

가상환경 비활성화

conda deactivate

 

joytk.tistory.com/14

 

 

맥북 아나콘다 가상환경 생성/삭제/activate/deactivate

( ※ 본 포스팅은 저자 개인의 한정적인 지식을 바탕으로 쓰여진 글입니다. 내용의 오류나, 오타 등을 언제든지 알려주시면 감사하겠습니다.) 기존에 가진 노트북은 윈도우32비트라 아나콘다

joytk.tistory.com

 

 

 

Last login: Wed Apr 21 01:43:44 on ttys000

 

eomminjeong@eomminjeong-ui-MacBookAir ~ % source ~/.bash_profile

(base) eomminjeong@eomminjeong-ui-MacBookAir ~ % conda create --name minjeong python==3.7

Collecting package metadata (current_repodata.json): done

Solving environment: failed with repodata from current_repodata.json, will retry with next repodata source.

Collecting package metadata (repodata.json): done

Solving environment: done

 

 

==> WARNING: A newer version of conda exists. <==

  current version: 4.9.2

  latest version: 4.10.1

 

Please update conda by running

 

    $ conda update -n base -c defaults conda

 

 

 

## Package Plan ##

 

  environment location: /opt/anaconda3/envs/minjeong

 

  added / updated specs:

    - python==3.7

 

 

The following packages will be downloaded:

 

    package                    |            build

    ---------------------------|-----------------

    ca-certificates-2021.4.13  |       hecd8cb5_1         114 KB

    certifi-2020.12.5          |   py37hecd8cb5_0         140 KB

    libedit-3.1.20210216       |       h9ed2024_1         136 KB

    libffi-3.2.1               |    h0a44026_1007          43 KB

    openssl-1.0.2u             |       h1de35cc_0         2.0 MB

    pip-21.0.1                 |   py37hecd8cb5_0         1.8 MB

    python-3.7.0               |       hc167b69_0        13.2 MB

    readline-7.0               |       h1de35cc_5         316 KB

    setuptools-52.0.0          |   py37hecd8cb5_0         721 KB

    wheel-0.36.2               |     pyhd3eb1b0_0          33 KB

    ------------------------------------------------------------

                                           Total:        18.4 MB

 

The following NEW packages will be INSTALLED:

 

  ca-certificates    pkgs/main/osx-64::ca-certificates-2021.4.13-hecd8cb5_1

  certifi            pkgs/main/osx-64::certifi-2020.12.5-py37hecd8cb5_0

  libcxx             pkgs/main/osx-64::libcxx-10.0.0-1

  libedit            pkgs/main/osx-64::libedit-3.1.20210216-h9ed2024_1

  libffi             pkgs/main/osx-64::libffi-3.2.1-h0a44026_1007

  ncurses            pkgs/main/osx-64::ncurses-6.2-h0a44026_1

  openssl            pkgs/main/osx-64::openssl-1.0.2u-h1de35cc_0

  pip                pkgs/main/osx-64::pip-21.0.1-py37hecd8cb5_0

  python             pkgs/main/osx-64::python-3.7.0-hc167b69_0

  readline           pkgs/main/osx-64::readline-7.0-h1de35cc_5

  setuptools         pkgs/main/osx-64::setuptools-52.0.0-py37hecd8cb5_0

  sqlite             pkgs/main/osx-64::sqlite-3.33.0-hffcf06c_0

  tk                 pkgs/main/osx-64::tk-8.6.10-hb0a8c7a_0

  wheel              pkgs/main/noarch::wheel-0.36.2-pyhd3eb1b0_0

  xz                 pkgs/main/osx-64::xz-5.2.5-h1de35cc_0

  zlib               pkgs/main/osx-64::zlib-1.2.11-h1de35cc_3

 

 

Proceed ([y]/n)? y

 

 

Downloading and Extracting Packages

python-3.7.0         | 13.2 MB   | ##################################### | 100% 

ca-certificates-2021 | 114 KB    | ##################################### | 100% 

wheel-0.36.2         | 33 KB     | ##################################### | 100% 

libffi-3.2.1         | 43 KB     | ##################################### | 100% 

pip-21.0.1           | 1.8 MB    | ##################################### | 100% 

setuptools-52.0.0    | 721 KB    | ##################################### | 100% 

openssl-1.0.2u       | 2.0 MB    | ##################################### | 100% 

certifi-2020.12.5    | 140 KB    | ##################################### | 100% 

readline-7.0         | 316 KB    | ##################################### | 100% 

libedit-3.1.20210216 | 136 KB    | ##################################### | 100% 

Preparing transaction: done

Verifying transaction: done

Executing transaction: done

#

# To activate this environment, use

#

#     $ conda activate minjeong

#

# To deactivate an active environment, use

#

#     $ conda deactivate

 

(base) eomminjeong@eomminjeong-ui-MacBookAir ~ % conda info --envs

# conda environments:

#

base                  *  /opt/anaconda3

minjeong                 /opt/anaconda3/envs/minjeong

 

(base) eomminjeong@eomminjeong-ui-MacBookAir ~ % source activate minjeong

(minjeong) eomminjeong@eomminjeong-ui-MacBookAir ~ % conda deactivate

(base) eomminjeong@eomminjeong-ui-MacBookAir ~ %