Conda 설치
slicon의 경우 기본 python 3.8로 설치가 되어 3.8 이상 설치 필요
# Slicon에서 conda 설치
$ brew install miniforge
# 설치 확인 및 활성화
$ conda activate base
# 위의 명령어 Error 발생 시 (zsh 사용 할 경우)
$ conda init zsh
$ source ~/.zshrc
# 자동 활성화 방지
$ conda config --set auto_activate_base false
# conda 가상환경 비활성화
$ conda deactivate
# 신규 가상환경 생성
$ conda create -n [가상환경명] python=[python version]
# PackagesNotFoundError: The following packages are not available from current channels 오류 발생
# -c 채널 옵션에 conda-forge를 주어서 패키지를 다운로드
# Conda-forge 는 anaconda에서 쉽게 설치할 수 있도록 검증된 파이썬 패키지들을
모은 채널
$ conda install -c conda-forge [패키지명==version]
# 가상환경 삭제
$ conda remove --name [가상환경명] --all
Jupyter 설치
# Jupyter 설치 (가상 환경 활성화 후 진행)
$ conda install jupyter
# or
$ pip install jupyter
# kernel 연결
$ python -m ipykernel install --user --name [가상환경명]
# 주피터 노트북 실행
$ jupyter notebook
'기타' 카테고리의 다른 글
WSL2 설치(Windows 11) + VS Code 원격 연결 (0) | 2023.10.24 |
---|---|
WSL2 설치(Windows 10) + VS Code 원격 연결 + MongoDB 설치 + npm 설치 (1) | 2023.03.10 |