๋ณธ๋ฌธ ๋ฐ”๋กœ๊ฐ€๊ธฐ
๊ฐœ๋ฐœ/Python

(Python) CondaError: Run 'conda init' before 'conda activate'

by gomdeng 2024. 11. 28.

๐Ÿถ ์—๋Ÿฌ

conda๋กœ ๊ฐ€์ƒ ํ™˜๊ฒฝ์„ ์„ค์น˜ํ•˜๊ณ , activate ํ•˜๋˜ ์ค‘ ์ œ๋ชฉ๊ณผ ๊ฐ™์€ ์—๋Ÿฌ๊ฐ€ ๋ฐœ์ƒํ–ˆ๋‹ค.
์—๋Ÿฌ ๋‚ด์šฉ๋Œ€๋กœ conda init ์‹คํ–‰ ํ›„, activate ํ•ด๋ดค๋‹ค.. ์•ˆ๋œ๋‹ค..

CondaError: Run 'conda init' before 'conda activate'

์—๋Ÿฌ ์ด๋ฏธ์ง€

 

๐Ÿถ ๋‚ด์šฉ

for changes to take effect, close and re-open your current shell

ํŠน์ • ์„ค์ • ๋ณ€๊ฒฝ์‚ฌํ•ญ์ด๋‚˜ ์†Œํ”„ํŠธ์›จ์–ด ์ดˆ๊ธฐํ™” ๋ช…๋ น์ด ์ ์šฉ๋˜๊ธฐ ์œ„ํ•ด ์‚ฌ์šฉ์ž๊ฐ€ ํ˜„์žฌ ์‚ฌ์šฉ ์ค‘์ธ
์‰˜ (ํ„ฐ๋ฏธ๋„ ๋˜๋Š” ๋ช…๋ น ํ”„๋กฌํ”„ํŠธ)์„ ์ข…๋ฃŒํ•˜๊ณ  ๋‹ค์‹œ ์—ด์–ด์•ผ ํ•จ์„ ์˜๋ฏธ ... 

ํ•œ๋‹ค๊ณ  ํ•œ๋‹ค. 

 

๐Ÿถ ์กฐ์น˜

Windows PowerShell์—์„œ ๋‹ค์Œ๊ณผ ๊ฐ™์€ ๋ช…๋ น์–ด๋ฅผ ์ˆ˜ํ–‰ํ•˜๋ฉด ํ•ด๊ฒฐ๋œ๋‹ค.

> get-help Set-ExecutionPolicy
> Set-ExecutionPolicy RemoteSigned

 

๐Ÿถ ์ฐธ๊ณ 

 

 

[anaconda] conda activate ๋™์ž‘ํ•˜์ง€ ์•Š์„ ๋•Œ (conda init ๊ด€๋ จ ์˜ค๋ฅ˜)

๋ฌธ์ œ ์ƒํ™ฉ conda ์„ค์น˜ ํ›„ init์„ ์ˆ˜ํ–‰ํ•˜์˜€์œผ๋‚˜ ์ดํ›„ ๊ฐ€์ƒ ํ™˜๊ฒฝ ํ™œ์„ฑํ™” ๋“ฑ์ด ๋™์ž‘ํ•˜์ง€ ์•Š๋Š” ์ƒํ™ฉ. $ conda activate base CommandNotFoundError: Your shell has not been properly configured to use 'conda activate'. To initialize your

data-scient2st.tistory.com

 

Conda CondaError: Run 'conda init' (Windows)

conda activate ๋ช…๋ น์–ด ์ž…๋ ฅ์‹œ [conda init before conda activate] ๋ฌธ๊ตฌ๊ฐ€ ๋‚˜์™€ "conda init"์„ ํ–ˆ๋”๋‹ˆ [CondaError: Run 'conda init'] ์—๋Ÿฌ๊ฐ€ ๋ฐœ์ƒ. ๊ทธ๋Ÿฌํ•œ ๊ฒฝ์šฐ "Windows PowerShell"์„ "๊ด€๋ฆฌ์ž๋กœ ์‹คํ–‰"ํ•œ ํ›„ ๋‹ค์Œ๊ณผ ๊ฐ™์€ ๋ช…

seokbong.tistory.com