๐ฑํ๊ฒฝ ์ค์
HelloAi ํ์ด์ฌ ๋ผ์ด๋ธ๋ฌ๋ฆฌ๋ฅผ ์ฌ์ฉํ๊ธฐ ์ํ ํ๊ฒฝ ์ค์
HelloAI ํ์ด์ฌ ๋ผ์ด๋ธ๋ฌ๋ฆฌ๋ ํ์ด์ฌ ๋ฒ์ 3.10๊ณผ 3.11.x์ ์ง์ํฉ๋๋ค. ํ์ฌ ํ์ด์ฌ ๊ณต์ ์ฌ์ดํธ์์๋ ํ์ด์ฌ 3.11 ๋ฒ์ ์ ์ค์น ํ์ผ์ ๋ค์ด๋ก๋ ๋ฐ์ ์ ์์ต๋๋ค.
์๋์ฝ๋ค(Anaconda) ๋๋ ๋ฏธ๋์ฝ๋ค(Miniconda) ๋ฅผ ์ค์นํ๊ณ , ํ์ด์ฌ ๋ฒ์ 3.11 ์ ๊ฐ์ํ๊ฒฝ์ ๋ง๋ค์ด์ ์ฌ์ฉํฉ๋๋ค.
์๋ ์ฌ์ดํธ์์ ํ์ธํ์ธ์.
์๋์ฝ๋ค์ ๋นํด์ ๊ธฐ๋ณธ ๊ธฐ๋ฅ๋ง ์ค์น๋๋ Miniconda์ ์ค์น๋ฅผ ๊ถํฉ๋๋ค. ์๋์ฐ์ฆ PC์ ๊ฒฝ์ฐ ์๋ ๋งํฌ๋ฅผ ํด๋ฆญํ๋ฉด Miniconda ์ค์น ํ์ผ์ด ๋ค์ด๋ก๋ ๋ฉ๋๋ค. py312 ๋ฒ์ ์ผ๋ก ์ค์นํฉ๋๋ค.
์ค์น ํ, ์๋์ฐ์ฆ์ PowerShell ํ๊ฒฝ์์์ฌ์ฉํ๋ค๋ฉด, ํฐ๋ฏธ๋์์ ์๋ ๋ช ๋ น์ ์คํํฉ๋๋ค.
conda init powershell
Powershellํ๊ฒฝ์์ ์คํ ์ ์ฑ ๊ด๋ จ ์๋ฌ๊ฐ ๋ฐ์ํ๋ค๋ฉด,
# ํ์ฌ ์คํ ์ ์ฑ
ํ์ธ
Get-ExecutionPolicy
์คํ ์ ์ฑ ์๋ณ๊ฒฝํด์ผํ๋ค๋ฉด, Powershell์๊ด๋ฆฌ์ ๊ถํ์ผ๋ก ์คํํ ํ, ์๋ ๋ช ๋ น์ ์คํํ๋ค.
# ๋ง์ฝ Restricted๋ผ๋ฉด ๊ด๋ฆฌ์ ๊ถํ์ผ๋ก PowerShell์ ์ด๊ณ :
Set-ExecutionPolicy RemoteSigned -Scope CurrentUser
Powershell์ ๋ซ๊ณ , ๋ค์ ์ผ๋ฐ ์ฌ์ฉ์๋ก Powershell์ ์คํํ ํ, ์๋ ๋ช ๋ น์ ์คํํ๋ค.
conda init powershell
Miniconda๋ฅผ ์ค์นํ ํ, ํฐ๋ฏธ๋์์ ์๋ ๋ช ๋ น์ผ๋ก ํ์ด์ฌ 3.11์ ๊ฐ์ ํ๊ฒฝ์ ๋ง๋ค๊ณ ํ์ฑํ ์ํฌ ์ ์์ต๋๋ค.
conda create -n <๊ฐ์ํ๊ฒฝ ์ด๋ฆ> python=3.11
conda activate <๊ฐ์ํ๊ฒฝ ์ด๋ฆ>
<๊ฐ์ํ๊ฒฝ ์ด๋ฆ>์๋ ์ ๋นํ ์ด๋ฆ์ ์ฌ์ฉํ๋ฉด ๋ฉ๋๋ค. ์๋ฅผ helloai ๋ผ๋ ์ด๋ฆ์ ์ฌ์ฉํ๋ค๋ฉด,
conda create -n helloai python=3.11
conda activate helloai
๊ฐ์ ํ๊ฒฝ์ด ํ์ฑํ๋ ์ํ์์ ํ์ด์ฌ์ ๋ฒ์ ์ ํ์ธํฉ๋๋ค.
python --version
ํ์ด์ฌ ๋ฒ์ ์ด 3.11 ์ธ๊ฒ์ ํ์ธํ๊ณ , HelloAI ํฉํค์ง๋ฅผ ์ค์นํฉ๋๋ค.
pip install helloai
Last updated