Machine Learning/TIL
Google Colab에서 conda 환경 설정하기
Juhyeon Nam
2023. 2. 23. 03:38
반응형
condacolab
을 이용하여 Conda 설치!pip install -q condacolab import condacolab condacolab.install()
잘 설치되었는지 버전 및 위치 확인
!conda --version !which conda
.yaml
Conda 환경 파일 설치!conda env create -f environment.yaml
하나의 셀 안에서 설치된 Conda 환경 실행하고 돌리고 싶은 파이썬 파일 돌리기
%%shell eval "$(conda shell.bash hook)" conda activate env python your_python_file.py
Reference: https://inside-machinelearning.com/en/how-to-install-use-conda-on-google-colab/
반응형