์ต๊ทผ ์ ์ ์๋ ์ค๋ฅ๋ก conda๊ฐ ์๋ํ์ง ์์ poetry๋ก python ๊ฐ์ ํ๊ฒฝ ๋ฐ ํจํค์ง ๊ด๋ฆฌ ๋๊ตฌ๋ฅผ ๋ณ๊ฒฝํ๋ค!
๊ทธ๋ฐ๋ฐ ํฐ๋ฏธ๋ ์คํ ์, conda๊ฐ ์๋ ์คํ๋๋ ์ค์ ์ ํด์ ํ์ง ์์ conda ํ์ผ์ ์ฐพ์ ์ ์๋ค๋ ์๋ฌ๊ฐ ๊ณ์ํด์ ๋ด๊ณ , ์ด๋ฅผ ํด๊ฒฐํด๋ณด๊ณ ์ ํ๋ค.
1. PowerShell
์ฝ๋ฉ์ ์ ๋ฐ์ ์๋ฌ ๋ฉ์ธ์ง ์ ์ฝ๊ธฐ!
์ ๋ณด๋ฉด, C:\Users\user\Documents\WindowsPowerShell\profile.psl ํ์ผ ์คํ ๊ณผ์ ์์ ์๋ฌ๊ฐ ๋ฐ์ํ ๊ฒ์ ์ ์ ์๋ค.
#region conda initialize
# !! Contents within this block are managed by 'conda init' !!
(& "C:\Users\user\anaconda3\Scripts\conda.exe" "shell.powershell" "hook") | Out-String | Invoke-Expression
#endregion
ํด๋น ํ์ผ์ ์ ์ฐพ์ ๋ค์ด๊ฐ๋ฉด, ์ด๋ฌํ ์ฝ๋๊ฐ ์๊ณ , ๋๋ต conda initializeํ๋ ๋ด์ฉ์์ ์ ์ ์๋ท
๋ด์ฉ์ ์ง์ฐ๊ณ , ์ ์ฅํ๋ฉด ์๋ฌ ํด๊ฒฐ ๐
2. bash
๐ฅณ: ์ข์!...? ๐ค
VSCode์ default terminal์ธ bash์์๋ ๊ฐ์ ์๋ฌ๊ฐ ์ฌ์ ํ ๋ฐ์ํ๊ณ ์์๊ณ , ๊ณง PowerShell, Git bash ๊ฐ๊ฐ ๋ฐ๋ก initialization ์ฝ๋๋ฅผ ์์ ํด์ผํ๋ค๋ ์ฌ์ค์ ๊นจ๋ฌ์๋ค.
์ด ๊ณผ์ ์์ ์์ ํด์ผํ ํ์ผ์ ์ฐพ๋๋ผ ์กฐ๊ธ ์๊ฐ์ด ๊ฑธ๋ ธ๋๋ฐ, GPT์ ๋ต๋ณ์ ๋ฃ๊ณ ํ ๋๋ ํ ๋ฆฌ๋ฅผ ๋ค์ง๋ ์ค, .bash_profile์ด ์์ ํด์ผํ ํ์ผ์์ ์๊ฒ ๋์๋ค!
๋ง์ฐฌ๊ฐ์ง๋ก conda initializeํ๋ ์ฝ๋๋ฅผ ์ญ์ ํ๊ณ ์ ์ฅํ๋ฉด ๋ฌธ์ ๊ฐ ํด๊ฒฐ๋๋ค!
-๋์-