Python
[Anaconda] Anaconda 가상환경 생성 방법
noName123495
2022. 1. 28. 19:23
Anaconda Prompt 에서 명령어를 통해 생성 가능
conda create -n {가상환경명} python={version}
생성된 가상 환경 리스트 확인
conda env list
현재는 base 가 activate 되어 있는 모습 (*)
conda 내 package install 하고 싶을 경우,
conda install {package명}
혹은 conda install 이 정상적으로 작동하지 않을 때,
conda install pip 로 pip install 후,
pip install {package명} 명령어를 통해 설치 가능
- PackagesNotFoundError
PackagesNotFoundError: The following packages are not available from current channels:
conda install에서 가장 흔히 발생하는 오류 중 하나로 conda에서 패키지를 다운로드하려는 기본 채널에 패키지가 존재하지 않는 경우,
conda install -c conda-forge 패키지명
# -c 채널 옵션에 conda-forge를 주어서 패키지를 다운로드
# Conda-forge 는 anaconda에서 쉽게 설치할 수 있도록 검증된 파이썬 패키지들을 모아 놓은 하나의 채널
반응형