โป SK ์ด๋์ค ๋ฃจํค์ฆ 24๊ธฐ (ํด๋ผ์ฐ๋๊ธฐ๋ฐ ์ค๋งํธ ์ตํฉ๋ณด์ ๊ณผ์ ) ๊ต์ก์ ๋ค์ผ๋ฉด์ ์์ฑํ ๋ด์ฉ์ ๋๋ค.
1๏ธโฃ Windows 11์์ ํ์ด์ฌ(Python) ์ค์นํ๊ธฐ
๐น 1. ํ์ด์ฌ ๋ค์ด๋ก๋
- ํ์ด์ฌ ๊ณต์ ์น์ฌ์ดํธ๋ก ์ด๋ (๋งํฌ)
Download Python
The official home of the Python Programming Language
www.python.org
- ์๋จ ๋ฉ๋ด์์ Downloads ํด๋ฆญํ๊ฑฐ๋ ๋ฉ์ธ ํ๋ฉด์ latest version ์ค์น
- Windows๋ฅผ ์ํ ์ต์ ๋ฒ์ ์ ์ ํํ๊ณ ๋ค์ด๋ก๋
๐น 2. ํ์ด์ฌ ์ค์น
- ๋ค์ด๋ก๋ํ ์ค์น ํ์ผ(python-<version>-amd64.exe)์ ์คํ
- ์ค์: Add Python 3.x to PATH ๋ฐ์ค๋ฅผ ์ฒดํฌ
- ์ด ์ต์ ์ ์ ํํ๋ฉด Python์ ๋ช ๋ น ํ๋กฌํํธ์์ ์ฝ๊ฒ ์คํ ๊ฐ๋ฅ
- Install Now๋ฅผ ํด๋ฆญํ์ฌ ๊ธฐ๋ณธ ์ค์ ์ผ๋ก ์ค์นํ๊ฑฐ๋, Customize Installation์ ํด๋ฆญํ์ฌ ์ฌ์ฉ์ ์ ์ ์ค์ ์ ์งํ
- Customize Installation์ ์ ํํ ๊ฒฝ์ฐ:
- ๊ธฐ๋ณธ์ ์ผ๋ก ๋ชจ๋ ์ต์ (Documentation, pip, tcl/tk, etc.)์ ์ ํ
- ์ค์น ๊ฒฝ๋ก๋ฅผ ์ง์ ํ๋ ค๋ฉด, ์๋ฅผ ๋ค์ด C:\Python3x์ ๊ฐ์ด ์ค์ ํ ์ ์์
- Customize Installation์ ์ ํํ ๊ฒฝ์ฐ:
- ์ค์น๊ฐ ์๋ฃ๋๋ฉด, "์ค์น๊ฐ ์ฑ๊ณต์ ์ผ๋ก ์๋ฃ๋์์ต๋๋ค"๋ผ๋ ๋ฉ์์ง๊ฐ ๋ํ๋จ
2๏ธโฃ VS CODE ์ค์นํ๊ธฐ
๐น 1. Visual Studio Code ๋ค์ด๋ก๋
โ Visual Studio Code ๊ณต์ ์น์ฌ์ดํธ๋ก ์ด๋ (๋งํฌ)
Download Visual Studio Code - Mac, Linux, Windows
Visual Studio Code is free and available on your favorite platform - Linux, macOS, and Windows. Download Visual Studio Code to experience a redefined code editor, optimized for building and debugging modern web and cloud applications.
code.visualstudio.com
โก ํ์ด์ง ์๋จ์ ์๋ Windows ๋ฒํผ์ ํด๋ฆญํ์ฌ ์ค์น ํ์ผ์ ๋ค์ด๋ก๋
๐น 2. ์ค์น ํ์ผ ์คํ
โ ๋ค์ด๋ก๋ํ ์ค์น ํ์ผ(VSCodeSetup-x64-<version>.exe)์ ์คํ
โก ์ค์น ๋ง๋ฒ์ฌ๊ฐ ์์๋๋ฉด ๋ค์ ๋จ๊ณ๋ฅผ ์งํ:
- License Agreement: ๋ผ์ด์ ์ค ๋์์์ ์ฒดํฌํ ๋ค Next๋ฅผ ํด๋ฆญ
- Install Location: ๊ธฐ๋ณธ ์ค์น ๊ฒฝ๋ก๋ฅผ ์ ์งํ๊ฑฐ๋ ์ฌ์ฉ์ ์ ์ ๊ฒฝ๋ก๋ฅผ ์ง์ ํ ๋ค Next๋ฅผ ํด๋ฆญ
๐น 2. ์ค์น ์ต์ ์ ํ
๋ค์๊ณผ ๊ฐ์ ์ต์ ์ ์ ํ ๊ฐ๋ฅ
โ Add "Open with Code" action to Windows Explorer file context menu:
- ํ์ผ์ ๋ง์ฐ์ค ์ค๋ฅธ์ชฝ ๋ฒํผ์ผ๋ก ํด๋ฆญํ์ ๋ "Code๋ก ์ด๊ธฐ" ์ต์ ์ด ๋ํ๋๋๋ก ํจ
โ Add "Open with Code" action to Windows Explorer directory context menu:
- ํด๋๋ฅผ ๋ง์ฐ์ค ์ค๋ฅธ์ชฝ ๋ฒํผ์ผ๋ก ํด๋ฆญํ์ ๋ "Code๋ก ์ด๊ธฐ" ์ต์ ์ด ๋ํ๋๋๋ก ํจ
โ Register Code as an editor for supported file types:
- VS Code๋ฅผ ๊ธฐ๋ณธ ์ฝ๋ ํธ์ง๊ธฐ๋ก ์ค์
โ Add to PATH (recommended):
- ๋ช ๋ น ํ๋กฌํํธ์์ code ๋ช ๋ น์ด๋ฅผ ์ฌ์ฉํ ์ ์๋๋ก ์ค์
ํ์ํ ์ต์ ์ ํ ํ ๋ค์์ผ๋ก ๋์ด๊ฐ๊ธฐ
๐น4. ์ค์น ์๋ฃ
โ Install ๋ฒํผ์ ํด๋ฆญํ์ฌ ์ค์น๋ฅผ ์์
โก ์ค์น๊ฐ ์๋ฃ๋๋ฉด ์ข ๋ฃ๋ฅผ ํด๋ฆญ
- "Visual Studio Code ์คํ"๋ฅผ ์ฒดํฌํ๋ฉด ์ค์น ํ VS Code๊ฐ ๋ฐ๋ก ์คํ๋ฉ๋๋ค.
๐น 5. ํ์ฅ ํ๋ก๊ทธ๋จ ์ค์น
โ VS Code๊ฐ ์คํ๋๋ฉด ์ผ์ชฝ ํ๋จ์ Extensions ์์ด์ฝ์ ํด๋ฆญ
- ๋๋ Ctrl+Shift+X๋ฅผ ๋๋ฌ ํ์ฅ ํ๋ก๊ทธ๋จ ํจ๋ ์ด๊ธฐ
โก Python ํ์ฅ ํ๋ก๊ทธ๋จ์ ๊ฒ์ํ์ฌ ์ค์น
๐น 6. ํ์ด์ฌ ์ ์ ์ค์น ํ ์คํธ
๊ฐ๋จํ ์ถ๋ ฅ๋ฌธ์ ์์ฑํ์ฌ ํ์ด์ฌ์ด ์ ๋๋ก ๋์ํ๋์ง ํ์ธ
print("์ถ๋ ฅ ํ
์คํธ์
๋๋ค")
print("Hello, world")
'๐งฉ Language > Python' ์นดํ ๊ณ ๋ฆฌ์ ๋ค๋ฅธ ๊ธ
[Python] ์ฃผ์ ๋ฐ์ดํฐ ๊ตฌ์กฐ (๋ฆฌ์คํธ / ๋์ ๋๋ฆฌ) (0) | 2025.01.14 |
---|---|
[Python] ๊ธฐ๋ณธ ์ ์ถ๋ ฅ ๋ค๋ฃจ๊ธฐ (0) | 2025.01.13 |
[์ค๋ฅ ํด๊ฒฐ] googletrans ์ฌ์ฉ ์ค ์ค๋ฅ (0) | 2025.01.13 |
[Python] googletrans ๋ผ์ด๋ธ๋ฌ๋ฆฌ ํ์ฉํด์ ๊ฐ๋จํ ๋ฒ์ญ๊ธฐ ๋ง๋ค๊ธฐ (1) | 2025.01.13 |
[Python] ๊ธฐ๋ณธ ๋ฌธ๋ฒ (๋ณ์ / ๋ฐ์ดํฐ ํ์ / ๋ณ์ ๋ค์ด๋ฐ ๊ท์น) (0) | 2025.01.13 |