๋ณธ๋ฌธ ๋ฐ”๋กœ๊ฐ€๊ธฐ
Installation & Setting

์•„๋‚˜์ฝ˜๋‹ค(Anaconda), ์ฃผํ”ผํ„ฐ๋…ธํŠธ๋ถ(Jupyter notebook) ์„ค์น˜๋ฐฉ๋ฒ• - Mac

by ๐Ÿ’œautumn 2020. 9. 5.

 ์ฃผํ”ผํ„ฐ ๋…ธํŠธ๋ถ ์„ค์น˜ ๋ฐฉ๋ฒ• 

๋ฐฉ๋ฒ• 1.  Anaconda์„ค์น˜

* ์•„๋‚˜์ฝ˜๋‹ค๋ž€?

 ํŒŒ์ด์ฌ์„ ์‹คํ–‰ํ•˜๊ธฐ ์œ„ํ•ด ํŒŒ์ด์ฌ ์ปดํŒŒ์ผ๋Ÿฌ๊ฐ€ ํ•„์š”

 ์•„๋‚˜์ฝ˜๋‹ค๋Š” ํŒŒ์ด์ฌ ์ปดํŒŒ์ผ๋Ÿฌ ๋ฐ ์ถ”๊ฐ€์ ์œผ๋กœ ํ•„์š”ํ•œ ๊ธฐ๋Šฅ(ํŒŒ์ด์ฌ ์ฃผ์š” ๋ผ์ด๋ธŒ๋Ÿฌ๋ฆฌ, Jupyter notebook ๋“ฑ)์„ ๋ชจ์•„๋‘” ํ”„๋กœ๊ทธ๋žจ

 

ํŒŒ์ด์ฌ์€ ๋‹ค์–‘ํ•œ ๋ผ์ด๋ธŒ๋Ÿฌ๋ฆฌ๊ฐ€ ์žฅ์  > ํ•„์š”์‹œ๋งˆ๋‹ค pip install library-name ๋ช…๋ น์–ด๋ฅผ ํ†ตํ•ด ๋นŒ๋“œํ•ด์•ผ ์‚ฌ์šฉ๊ฐ€๋Šฅ

๋งค๋ฒˆํ•˜๊ธฐ ๋ฒˆ๊ฑฐ๋กญ๊ธฐ ๋•Œ๋ฌธ์— ์ฃผ์š”ํ•œ ๋ผ์ด๋ธŒ๋Ÿฌ๋ฆฌ๊ฐ€ ์•„๋‚˜์ฝ˜๋‹ค์— ๋‚ด์žฅ๋˜์–ด ์žˆ์–ด ํŽธํ•จ

 

* ์ฃผํ”ผํ„ฐ ๋…ธํŠธ๋ถ์ด๋ž€?

 ๋ฌธ์„œ ์ž‘์„ฑ, ์ด๋ฏธ์ง€ ๋„ฃ๊ธฐ ๊ฐ€๋Šฅ : ์‹ค์ œ ๋…ธํŠธ์ฒ˜๋Ÿผ ํ™œ์šฉ ๊ฐ€๋Šฅ!

 ์‹ค์ œ ์ฝ”๋“œ๋ฅผ ํ•œ์ค„์”ฉ ๋„ฃ์–ด์„œ ์‹คํ–‰๊ฐ€๋Šฅํ•˜๋ฉฐ ํ•œ์ค„ ํ•œ์ค„์— ๋Œ€ํ•œ ๊ฒฐ๊ณผ(์ค‘๊ฐ„๊ฒฐ๊ณผ)๋ฅผ ํ™•์ธ ๊ฐ€๋Šฅ

 ๊ทธ๋ ‡๊ธฐ ๋•Œ๋ฌธ์— ๋‚จ์˜ ์ฝ”๋“œ๋ฅผ ์ดํ•ดํ•˜๊ธฐ๋„ ์‰ฝ๊ณ , ์•Œ๊ณ ๋ฆฌ์ฆ˜์„ ์ดํ•ดํ•˜๊ธฐ๋„ ์‰ฝ๋‹ค!

 

 * ์„ค์น˜๋ฐฉ๋ฒ•  

1. google ์—์„œ anaconda ํ™ˆํŽ˜์ด์ง€ > product > individual Edition ํด๋ฆญ

www.anaconda.com/products/individual

 

Anaconda | Individual Edition

Anaconda's open-source Individual Edition is the easiest way to perform Python/R data science and machine learning on a single machine.

anaxdtest.xdlab.co

 

 

2. ํ™˜๊ฒฝ์— ๋งž๋Š” ์„ค์น˜ ํŒŒ์ผ ๋‹ค์šด๋กœ๋“œ

  * Mac์˜ ๋‘๊ฐ€์ง€ ์„ค์น˜ํŒŒ์ผ์€ ๊ทธ๋ž˜ํ”ฝ์œผ๋กœ ์„ค์น˜๋ฅผ ์ง„ํ–‰ํ•  ๊ฒƒ์ธ์ง€, command๋กœ ์ง„ํ–‰ํ•  ๊ฒƒ์ธ์ง€ ์„ ํƒํ•˜๋Š” ๊ฒƒ

  * ์ €๋Š” ๋” ์‰ฌ์šด ์„ค์น˜๋ฅผ ์œ„ํ•ด ๊ทธ๋ž˜ํ”ฝ ํŒŒ์ผ (์ƒ๋‹จํŒŒ์ผ)์„ ๋‹ค์šด๋ฐ›์•„ ์ง„ํ–‰ํ–ˆ์Šต๋‹ˆ๋‹ค :)

 

 

3. ๋‹ค์šด๋กœ๋“œํ•œ ํŒŒ์ผ์„ ํ†ตํ•œ ์„ค์น˜ : ๋ณ„๋„๋กœ ์ฃผ์˜ํ•  ์ ์€ ์—†์–ด์š” ๊ทธ๋ƒฅ ์„ค์น˜ ์„ค์น˜!

 

4. ์„ค์น˜ ์™„๋ฃŒ ํ›„ ๋Ÿฐ์น˜ํŒจ๋“œ์—์„œ Anaconda-Navigator ์‹คํ–‰ > Jupyter Notebook > Launch !

 

5. ์ž๋™์œผ๋กœ ์„ค์น˜๋˜๋ฉฐ ์ฃผํ”ผํ„ฐ๋…ธํŠธ๋ถ ์‹คํ–‰๋˜๋ฉด ๋!

6. ํ˜น์‹œ ํ„ฐ๋ฏธ๋„ ํ™˜๊ฒฝ์— ์ต์ˆ™ํ•˜๋‹ค๋ฉด, ์ปค๋ฉ˜ํŠธ์ฐฝ์—์„œ jupyter-notebook ์„ ์ž…๋ ฅํ•˜๋ฉด ์‹คํ–‰ OK!

 

 

 

 

๋ฐฉ๋ฒ• 2. ์•„๋‚˜์ฝ˜๋‹ค ์„ค์น˜๊ฐ€ ์•ˆ๋˜๋Š” ๊ฒฝ์šฐ 

1. ํŒŒ์ด์ฌ ์ปดํŒŒ์ผ๋Ÿฌ ์„ค์น˜ : https://python.org/downloads/ 

 

Download Python

The official home of the Python Programming Language

www.python.org

2. Jupyternote book ์„ค์น˜

3. ํ„ฐ๋ฏธ๋„์—์„œ ๋‹ค์Œ ๋ช…๋ น์–ด ์ž…๋ ฅํ•˜์—ฌ ์„ค์น˜ ์ง„ํ–‰

 pip install --upgrade pip

 pip install jupyter

 

'Installation & Setting' ์นดํ…Œ๊ณ ๋ฆฌ์˜ ๋‹ค๋ฅธ ๊ธ€

[์ฃผํ”ผํ„ฐ๋…ธํŠธ๋ถ] ์‚ฌ์šฉ๋ฒ•  (0) 2020.09.05

๋Œ“๊ธ€