Step#1. Conda로 가상환경 만들기

정은경·2019년 12월 23일
2

🎸 Play the Django 

목록 보기
6/57

1) 가상환경 리스트 확인 (\"conda env list\")

conda env list

conda env list
(base) marie@MarieJungui-MacBookPro:~ » conda env list
# conda environments:
#
base                  *  /Users/marie/miniconda3
practice_python          /Users/marie/miniconda3/envs/practice_python
project                  /Users/marie/miniconda3/envs/project

(base) marie@MarieJungui-MacBookPro:~ »

2) 가상환경 생성 (\"conda create -n 가상환경명\")

conda create -n 생성할가상환경이름 python=생성할가상환경의버전명시

conda create -n test_project python=3.7
(base) marie@MarieJungui-MacBookPro:~ » conda create -n test_project python=3.7
Collecting package metadata (current_repodata.json): done
Solving environment: done


==> WARNING: A newer version of conda exists. <==
  current version: 4.7.12
  latest version: 4.8.0

Please update conda by running

    $ conda update -n base -c defaults conda



## Package Plan ##

  environment location: /Users/marie/miniconda3/envs/test_project

  added / updated specs:
    - python=3.7


The following NEW packages will be INSTALLED:

  ca-certificates    pkgs/main/osx-64::ca-certificates-2019.11.27-0
  certifi            pkgs/main/osx-64::certifi-2019.11.28-py37_0
  libcxx             pkgs/main/osx-64::libcxx-4.0.1-hcfea43d_1
  libcxxabi          pkgs/main/osx-64::libcxxabi-4.0.1-hcfea43d_1
  libedit            pkgs/main/osx-64::libedit-3.1.20181209-hb402a30_0
  libffi             pkgs/main/osx-64::libffi-3.2.1-h475c297_4
  ncurses            pkgs/main/osx-64::ncurses-6.1-h0a44026_1
  openssl            pkgs/main/osx-64::openssl-1.1.1d-h1de35cc_3
  pip                pkgs/main/osx-64::pip-19.3.1-py37_0
  python             pkgs/main/osx-64::python-3.7.5-h359304d_0
  readline           pkgs/main/osx-64::readline-7.0-h1de35cc_5
  setuptools         pkgs/main/osx-64::setuptools-42.0.2-py37_0
  sqlite             pkgs/main/osx-64::sqlite-3.30.1-ha441bb4_0
  tk                 pkgs/main/osx-64::tk-8.6.8-ha441bb4_0
  wheel              pkgs/main/osx-64::wheel-0.33.6-py37_0
  xz                 pkgs/main/osx-64::xz-5.2.4-h1de35cc_4
  zlib               pkgs/main/osx-64::zlib-1.2.11-h1de35cc_3


Proceed ([y]/n)? y

Preparing transaction: done
Verifying transaction: done
Executing transaction: done
#
# To activate this environment, use
#
#     $ conda activate test_project
#
# To deactivate an active environment, use
#
#     $ conda deactivate

(base) marie@MarieJungui-MacBookPro:~ »

3) 생성된 가상환경 확인 (\"conda env list\")

conda env list

conda env list
(base) marie@MarieJungui-MacBookPro:~ » conda env list
# conda environments:
#
base                  *  /Users/marie/miniconda3
practice_python          /Users/marie/miniconda3/envs/practice_python
project                  /Users/marie/miniconda3/envs/project
test_project             /Users/marie/miniconda3/envs/test_project

(base) marie@MarieJungui-MacBookPro:~ »
(base) marie@MarieJungui-MacBookPro:~ » conda activate test_project
(test_project) marie@MarieJungui-MacBookPro:~ »
(test_project) marie@MarieJungui-MacBookPro:~ »
profile
#의식의흐름 #순간순간 #생각의스냅샷

0개의 댓글