티스토리 뷰
1. yml 파일을 통해서 복사하기
conda env export -n {env_name} > env.yml
하고
vi env.yml
로 파일을 확인해보면,
이렇게 conda를 통해서 설치된 목록이 보인다.
새로운 환경을 만들 때,
conda env create -f env.yml
로 생성하면 된다.
내가 자주 쓰는 env.yml 파일을 공유하려고 한다.
내용 >
더보기
name: venv
channels:
- pytorch
- conda-forge
- defaults
dependencies:
- _libgcc_mutex=0.1=main
- _openmp_mutex=4.5=1_gnu
- absl-py=1.0.0=pyhd8ed1ab_0
- aiohttp=3.7.4.post0=py38h7f8727e_2
- asttokens=2.0.5=pyhd8ed1ab_0
- async-timeout=3.0.1=py_1000
- attrs=21.4.0=pyhd8ed1ab_0
- backcall=0.2.0=pyh9f0ad1d_0
- backports=1.0=py_2
- backports.functools_lru_cache=1.6.4=pyhd8ed1ab_0
- blas=1.0=mkl
- blinker=1.4=py_1
- brotlipy=0.7.0=py38h497a2fe_1001
- bzip2=1.0.8=h7b6447c_0
- c-ares=1.18.1=h7f8727e_0
- ca-certificates=2021.10.8=ha878542_0
- certifi=2021.10.8=py38h578d9bd_1
- cffi=1.15.0=py38hd667e15_1
- chardet=4.0.0=py38h578d9bd_2
- charset-normalizer=2.0.12=pyhd8ed1ab_0
- click=8.0.4=py38h578d9bd_0
- cpuonly=2.0=0
- cryptography=35.0.0=py38ha5dfef3_0
- cudatoolkit=11.0.221=h6bb024c_0
- debugpy=1.5.1=py38h295c915_0
- decorator=5.1.1=pyhd8ed1ab_0
- entrypoints=0.4=pyhd8ed1ab_0
- executing=0.8.2=pyhd8ed1ab_0
- ffmpeg=4.3=hf484d3e_0
- freetype=2.11.0=h70c0345_0
- giflib=5.2.1=h7b6447c_0
- gmp=6.2.1=h2531618_2
- gnutls=3.6.15=he1e5248_0
- google-auth-oauthlib=0.4.6=pyhd8ed1ab_0
- idna=3.3=pyhd8ed1ab_0
- importlib-metadata=4.11.1=py38h578d9bd_0
- intel-openmp=2021.4.0=h06a4308_3561
- ipykernel=6.9.1=py38he5a9106_0
- ipython=8.0.1=py38h578d9bd_1
- jedi=0.18.1=py38h578d9bd_0
- jpeg=9d=h7f8727e_0
- jupyter_client=7.1.2=pyhd8ed1ab_0
- jupyter_core=4.9.2=py38h578d9bd_0
- lame=3.100=h7b6447c_0
- lcms2=2.12=h3be6417_0
- ld_impl_linux-64=2.35.1=h7274673_9
- libffi=3.3=he6710b0_2
- libgcc-ng=9.3.0=h5101ec6_17
- libgomp=9.3.0=h5101ec6_17
- libiconv=1.15=h63c8f33_5
- libidn2=2.3.2=h7f8727e_0
- libpng=1.6.37=hbc83047_0
- libprotobuf=3.15.8=h780b84a_0
- libsodium=1.0.18=h36c2ea0_1
- libstdcxx-ng=9.3.0=hd4cf53a_17
- libtasn1=4.16.0=h27cfd23_0
- libtiff=4.1.0=h2733197_1
- libunistring=0.9.10=h27cfd23_0
- libuv=1.40.0=h7b6447c_0
- libwebp=1.2.0=h89dd481_0
- lz4-c=1.9.3=h295c915_1
- markdown=3.3.6=pyhd8ed1ab_0
- matplotlib-inline=0.1.3=pyhd8ed1ab_0
- mkl=2021.4.0=h06a4308_640
- mkl-service=2.4.0=py38h7f8727e_0
- mkl_fft=1.3.1=py38hd3c417c_0
- mkl_random=1.2.2=py38h51133e4_0
- multidict=5.2.0=py38h7f8727e_2
- ncurses=6.3=h7f8727e_2
- nest-asyncio=1.5.4=pyhd8ed1ab_0
- nettle=3.7.3=hbbd107a_1
- numpy=1.21.2=py38h20f2e39_0
- numpy-base=1.21.2=py38h79a1101_0
- oauthlib=3.2.0=pyhd8ed1ab_0
- olefile=0.46=pyhd3eb1b0_0
- openh264=2.1.1=h4ff587b_0
- openssl=1.1.1m=h7f8727e_0
- parso=0.8.3=pyhd8ed1ab_0
- pexpect=4.8.0=pyh9f0ad1d_2
- pickleshare=0.7.5=py_1003
- pillow=8.4.0=py38h5aabda8_0
- pip=21.2.4=py38h06a4308_0
- prompt-toolkit=3.0.27=pyha770c72_0
- ptyprocess=0.7.0=pyhd3deb0d_0
- pure_eval=0.2.2=pyhd8ed1ab_0
- pyasn1=0.4.8=py_0
- pycparser=2.21=pyhd8ed1ab_0
- pygments=2.11.2=pyhd8ed1ab_0
- pyjwt=2.3.0=pyhd8ed1ab_1
- pyopenssl=22.0.0=pyhd8ed1ab_0
- pysocks=1.7.1=py38h578d9bd_4
- python=3.8.12=h12debd9_0
- python-dateutil=2.8.2=pyhd8ed1ab_0
- python_abi=3.8=2_cp38
- pytorch-mutex=1.0=cpu
- pyu2f=0.1.5=pyhd8ed1ab_0
- pyzmq=19.0.2=py38ha71036d_2
- readline=8.1.2=h7f8727e_1
- requests=2.27.1=pyhd8ed1ab_0
- requests-oauthlib=1.3.1=pyhd8ed1ab_0
- rsa=4.8=pyhd8ed1ab_0
- setuptools=58.0.4=py38h06a4308_0
- six=1.16.0=pyhd3eb1b0_1
- sqlite=3.37.2=hc218d9a_0
- stack_data=0.2.0=pyhd8ed1ab_0
- tensorboard-plugin-wit=1.8.1=pyhd8ed1ab_0
- tk=8.6.11=h1ccaba5_0
- torchaudio=0.10.2=py38_cpu
- tornado=6.1=py38h497a2fe_1
- traitlets=5.1.1=pyhd8ed1ab_0
- typing-extensions=3.10.0.2=hd3eb1b0_0
- typing_extensions=3.10.0.2=pyh06a4308_0
- urllib3=1.26.8=pyhd8ed1ab_1
- wcwidth=0.2.5=pyh9f0ad1d_2
- werkzeug=2.0.3=pyhd8ed1ab_1
- wheel=0.37.1=pyhd3eb1b0_0
- xz=5.2.5=h7b6447c_0
- yarl=1.6.3=py38h27cfd23_0
- zeromq=4.3.4=h9c3ff4c_0
- zipp=3.7.0=pyhd8ed1ab_1
- zlib=1.2.11=h7f8727e_4
- zstd=1.4.9=haebb681_0
- pip:
- albumentations==1.1.0
- argon2-cffi==21.3.0
- argon2-cffi-bindings==21.2.0
- black==22.1.0
- bleach==4.1.0
- cachetools==4.2.4
- cycler==0.11.0
- defusedxml==0.7.1
- docker-pycreds==0.4.0
- fonttools==4.29.1
- future==0.18.2
- gitdb==4.0.9
- gitpython==3.1.27
- google-auth==1.35.0
- gputil==1.4.0
- grpcio==1.44.0
- imageio==2.16.0
- importlib-resources==5.4.0
- ipython-genutils==0.2.0
- ipywidgets==7.6.5
- jinja2==3.0.3
- joblib==1.1.0
- jsonschema==4.4.0
- jupyterlab-pygments==0.1.2
- jupyterlab-widgets==1.0.2
- kiwisolver==1.3.2
- markupsafe==2.1.0
- matplotlib==3.2.1
- mistune==0.8.4
- mypy-extensions==0.4.3
- nbclient==0.5.11
- nbconvert==6.4.2
- nbformat==5.1.3
- networkx==2.6.3
- notebook==6.4.8
- opencv-python==4.5.1.48
- packaging==21.3
- pandas==1.1.5
- pandocfilters==1.5.0
- pathspec==0.9.0
- pathtools==0.1.2
- platformdirs==2.5.1
- prometheus-client==0.13.1
- promise==2.3
- protobuf==3.19.4
- psutil==5.9.0
- pyasn1-modules==0.2.8
- pydeprecate==0.3.2
- pynvml==11.4.1
- pyparsing==3.0.7
- pyrsistent==0.18.1
- python-dotenv==0.19.2
- pytz==2021.3
- pywavelets==1.2.0
- pyyaml==6.0
- qudida==0.0.4
- scikit-image==0.19.2
- scikit-learn==0.24.2
- scipy==1.8.0
- seaborn==0.11.2
- send2trash==1.8.0
- sentry-sdk==1.5.6
- shortuuid==1.0.8
- sklearn==0.0
- smmap==5.0.0
- squarify==0.4.3
- tensorboard==2.4.1
- tensorboard-data-server==0.6.1
- termcolor==1.1.0
- terminado==0.13.1
- testpath==0.6.0
- threadpoolctl==3.1.0
- tifffile==2022.2.9
- timm==0.5.4
- tomli==2.0.1
- torch==1.6.0
- torch-tb-profiler==0.3.1
- torchmetrics==0.7.2
- torchvision==0.7.0
- tqdm==4.62.3
- wandb==0.12.10
- webencodings==0.5.1
- widgetsnbextension==3.5.2
- yaspin==2.1.0
prefix: /opt/conda/envs/venv
2. pip freeze를 통해 pip로 설치한 목록도 불러오기
pip freeze > requirements.txt
pip install -r requirements.txt
Q) Visual Studio Code에 깔은 extension들도 사용할 수 있는 방법이 없을까?
>> https://kimyang-sun.tistory.com/entry/VSCode-vscode-설정-저장Settings-Sync-동기화-사용하기
출처: https://itdar.tistory.com/entry/아나콘다-환경-복사이식-Anaconda-environment-copytransfer-python-pycharm-vscode-machinelearning-ai [Stack by Stack]