아나콘다 사용 목적은 가상환경을 만들어서 작업하는 것이다.
파이썬 버전 확인
python --version
가상환경 확인
conda env list
conda info --envs
가상환경 만들기
conda create --name
newenv38 python=
3.8
가상환경 활성화
conda activate
newenv38
가상환경 비활성화
conda deactivate
가상환경 삭제
conda env remove -n
newenv38
(base) sungjune@MacBook-Pro-SJ ~ % conda env list
# conda environments:
#
base * /Users/sungjune/opt/anaconda3
(base) sungjune@MacBook-Pro-SJ ~ % conda info --envs
# conda environments:
#
base * /Users/sungjune/opt/anaconda3
(base) sungjune@MacBook-Pro-SJ ~ % conda create --name newenv38 python=3.8
Collecting package metadata (current_repodata.json): done
Solving environment: done
## Package Plan ##
environment location: /Users/sungjune/opt/anaconda3/envs/newenv38
added / updated specs:
- python=3.8
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-py38hecd8cb5_0
libcxx pkgs/main/osx-64::libcxx-10.0.0-1
libffi pkgs/main/osx-64::libffi-3.3-hb1e8313_2
ncurses pkgs/main/osx-64::ncurses-6.2-h0a44026_1
openssl pkgs/main/osx-64::openssl-1.1.1k-h9ed2024_0
pip pkgs/main/osx-64::pip-21.0.1-py38hecd8cb5_0
python pkgs/main/osx-64::python-3.8.8-h88f2d9e_5
readline pkgs/main/osx-64::readline-8.1-h9ed2024_0
setuptools pkgs/main/osx-64::setuptools-52.0.0-py38hecd8cb5_0
sqlite pkgs/main/osx-64::sqlite-3.35.4-hce871da_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
Preparing transaction: done
Verifying transaction: done
Executing transaction: done
#
# To activate this environment, use
#
# $ conda activate newenv38
#
# To deactivate an active environment, use
#
# $ conda deactivate
(base) sungjune@MacBook-Pro-SJ ~ % conda info --envs
# conda environments:
#
base * /Users/sungjune/opt/anaconda3
newenv38 /Users/sungjune/opt/anaconda3/envs/newenv38
(base) sungjune@MacBook-Pro-SJ ~ % conda activate newenv38
(newenv38) sungjune@MacBook-Pro-SJ ~ % conda deactivate
(base) sungjune@MacBook-Pro-SJ ~ % conda env remove --name newenv38
Remove all packages in environment /Users/sungjune/opt/anaconda3/envs/newenv38:
(base) sungjune@MacBook-Pro-SJ ~ % conda env list
# conda environments:
#
base * /Users/sungjune/opt/anaconda3
(base) sungjune@MacBook-Pro-SJ ~ %
웹에서 Python을 활용할 수 있는 도구
Code Cells
Markdown Cells