옐그's 코딩라이프

[conda] activate CommandNotFoundError 해결하기 본문

AI

[conda] activate CommandNotFoundError 해결하기

옐그멍이 2022. 9. 7. 15:25

CommandNotFoundError: Your shell has not been properly configured to use 'conda activate'.
If using 'conda activate' from a batch script, change your
invocation to 'CALL conda.bat activate'.

To initialize your shell, run

    $ conda init <SHELL_NAME>

Currently supported shells are:
  - bash
  - cmd.exe
  - fish
  - tcsh
  - xonsh
  - zsh
  - powershell

See 'conda init --help' for more information and options.

IMPORTANT: You may need to close and restart your shell after running 'conda init'.

다음과 같은 에러가 뜨는 경우 위에 나온 것처럼 아래와 같이 입력해준다.

$ conda init bash

다음과 같은 결과창이 뜨고 activate 명령어를 사용하면

$ conda activate test

보이는 것과 같이 잘 활성화되었다!

728x90