๐ŸŒŒ OS/Linux-๋ฆฌ๋ˆ…์Šค

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

mxnxeonx 2022. 7. 20. 13:39
728x90
728x90

Linux Ubuntu 18.04 ํ™˜๊ฒฝ์—์„œ Docker ๋‚ด์— Conda๋ฅผ Installํ•˜์˜€๋‹ค.

 

Create๋œ Conda์— Activation์„ ํ•˜๋ ค๊ณ  ํ•  ๋•Œ, ๋‹ค์Œ๊ณผ ๊ฐ™์€ ์—๋Ÿฌ๊ฐ€ ๋ฐœ์ƒํ•˜์—ฌ ์ ‘์†์ด ๋ถˆ๊ฐ€ํ–ˆ๋‹ค.

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:
...

 

conda init ๋ช…๋ น์–ด๋ฅผ ์ž…๋ ฅํ•˜๋ผ๋Š” ๋œป์œผ๋กœ ์ดํ•ดํ•˜์—ฌ ์ž…๋ ฅํ•ด๋ณด์•˜์œผ๋‚˜ ํ•ด๊ฒฐ์ด ๋˜์ง€ ์•Š์•˜๊ณ , ์—ด์‹ฌํžˆ ๊ตฌ๊ธ€๋งํ•œ ๊ฒฐ๊ณผ

conda PATH๊ฐ€ ์ œ๋Œ€๋กœ ์ง€์ •๋˜์ง€ ์•Š์•„ initialize๊ฐ€ ๋ถˆ๊ฐ€๋Šฅํ•œ ๊ฒƒ์œผ๋กœ ํ™•์ธ๋˜์—ˆ๋‹ค.

 

 

ํ•ด๊ฒฐ ๋ฐฉ๋ฒ•์€ ๋‹ค์Œ๊ณผ ๊ฐ™๋‹ค.

$ source ~/<conda path>/etc/profile.d/conda.sh

<conda path> ๋ถ€๋ถ„์— ์ž์‹ ์˜ conda ๊ฒฝ๋กœ๋ฅผ ์‚ฝ์ž…ํ•˜์—ฌ ํ„ฐ๋ฏธ๋„์— ์ž…๋ ฅํ•˜๋ฉด ๋ฐ”๋กœ ํ•ด๊ฒฐ๋œ๋‹ค.

728x90
320x100