티스토리 뷰

728x90

다음과 같은 명령어를 우분투 환경에서 실행하였을 때,
conda activate test

 

다음과 같은 에러를 만났습니다.

CommandNotFoundError: Your shell has not been properly configured to use 'conda activate'.

To initialize your shell, run

 

    $ conda init <SHELL_NAME>

 

Currently supported shells are:

  - bash

  - 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 info | grep -i 'base environment'

 

다음의 명령어를 실행합니다.

source {찾은 경로}/etc/profile.d/conda.sh

 

이제 성공할 겁니다.

conda activate test

댓글