๐Ÿ“ OS/Linux

[Ubuntu] ์šฐ๋ถ„ํˆฌ ์•„๋‚˜์ฝ˜๋‹ค ์„ค์ •

SOIT 2022. 11. 8. 18:17

https://pasongsong.tistory.com/231

https://jjeongil.tistory.com/1856

 

[Ubuntu] ์šฐ๋ถ„ํˆฌ 18.04 ์•„๋‚˜์ฝ˜๋‹ค ๊ฐ€์ƒ ํ™˜๊ฒฝ ์„ค์ •

https://www.anaconda.com/products/distribution ์•„๋‚˜์ฝ˜๋‹ค ์„ค์น˜ Anaconda | Anaconda Distribution Anaconda's open-source Distribution is the easiest way to perform Python/R data science and machine learning on a single machine. www.anaconda.com Downloads

pasongsong.tistory.com

 

์ฐธ๊ณ 

 

1. ์•„๋‚˜์ฝ˜๋‹ค ์„ค์น˜

1. cd Downloads

 

๋‹ค์šด

https://www.anaconda.com/products/distribution


(๋ฆฌ๋ˆ…์Šค-์œˆ๋„์šฐ: ์›๊ฒฉ)

  • AnyDesk ์„ค์น˜
  • ์„ค์น˜ ํ›„์— ์„œ๋ฒ„์ปด ๋“ค์–ด๊ฐ€์„œ ์•„๋‚˜์ฝ˜๋‹ค ์„ค์น˜ ํ›„์— ์ง„ํ–‰

 

2. ํ„ฐ๋ฏธ๋„ ์—ด๊ธฐ

Ctrl + Alt + T๋ฅผ ์‚ฌ์šฉ

 

๋ณต์‚ฌ: ctrl + shift + c

๋ถ™์—ฌ๋„ฃ๊ธฐ: ctrl + shift + v

 

 

3. ์•„๋‚˜์ฝ˜๋‹ค ์„ค์น˜

1.cd Downloads

  • cd: ํŒŒ์ผ๋กœ ์ด๋™ํ•ด๋ผ
  • Downloads์— ์•„๋‚˜์ฝ˜๋‹ค ์„ค์น˜ํ•ด์„œ ๋“ค์–ด๊ฐ€๋Š” ๊ฑฐ์ž„

2. bash Anaconda3-2022.10-Linux-x86_64.sh

 

์„ค์น˜

  • ์ฒ˜์Œ์— ์ž…๋ ฅํ•˜๊ณ  Enter
  • s ์ญ‰ ๋ˆ„๋ฅด๋‹ค๊ฐ€ ๊ฑด๋„ˆ ๋›ฐ๋ฉด yes

 

  • path ๋ฌผ์œผ๋ฉด Enter
  • ๊ทธ ํ›„์— ๋‹ค yes

์„ค์น˜ ์™„๋ฃŒ
์•„๋‚˜์ฝ˜๋‹ค ํ™œ์„ฑํ™” ํ›„ ํ™•์ธ

์•„๋‚˜์ฝ˜๋‹ค ์„ค์น˜๋ฅผ ํ™œ์„ฑํ™”: ์œ„๊นŒ์ง€ ์‹คํ–‰ํ•˜๊ณ  ์…ธ์„ ๋‹ซ์•˜๋‹ค๊ฐ€ ๋‹ค์‹œ ์—ด์–ด์„œ ํ˜„์žฌ ์…ธ ์„ธ์…˜์— ๋กœ๋“œ

์ž…๋ ฅ: source ~/.bashrc

ํ™•์ธ: conda info

 

5. ๊ฐ€์ƒํ™˜๊ฒฝ ์„ค์ •

conda list

conda create -n py39 python=3.9

conda activate py39

 

6. VSC์—์„œ ์ฃผํ”ผํ„ฐ, ์‚ฌ์šฉ

1)  VSC์— ๋“ค์–ด๊ฐ€์„œ ๊ฐ€์ƒํ™˜๊ฒฝ์œผ๋กœ ์ ‘์†

 2) torch ์„ค์น˜

 

์ด๋•Œ ๋ฒ„์ „ ๋งž์ถฐ์ค˜์•ผ ํ•œ๋‹ค

- nvidia-smi ํ™•์ธ

๋ฒ„์ „ 11.4

 

๋ฒ„์ „ ์ˆ˜์ •ํ•˜๋ฉด ๋จ

https://pytorch.org/get-started/locally/

 

PyTorch

An open source machine learning framework that accelerates the path from research prototyping to production deployment.

pytorch.org

 

์—ฌ๊ธฐ๋ณด๋ฉด ๋’ค์— cu144๋กœ ๋ฒ„์ „ ์ˆ˜์ •ํ•ด์คŒ

 

pip3 install torch torchvision torchaudio --extra-index-url https://download.pytorch.org/whl/cu114 Looking in indexes: https://pypi.org/simple, https://download.pytorch.org/whl/cu114

 

728x90