2019년 7월 15일 월요일

[Python] Anaconda 설치 후 command line 에 (base) 라고 나올 경우

* Anaconda 설치 후 command line 에 (base) 라고 기본 가상 환경 이름이 출력되는 경우가 있음



그냥 둬도 상관없지만 없애보기로 함

conda config --show 
라고 실행해보면

auto_activate_base: True 로 설정되어 있을 것임. auto_activate_base를 False로 변경해주어야 함

conda config --set auto_activate_base False 
라고 실행하면 command line에 더 이상 (base)가 자동으로 실행되지 않음

(base) 가상환경을 매뉴얼로 실행하고자하면 conda activate base 를 입력하면 됨


출처:https://askubuntu.com/questions/1026383/why-does-base-appear-in-front-of-my-terminal-prompt

댓글 없음:

댓글 쓰기