๐ 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