--- /dev/null
+# νκ²½ λ³μ
+
+/// tip | "ν"
+
+λ§μ½ "νκ²½ λ³μ"κ° λ¬΄μμ΄κ³ , μ΄λ»κ² μ¬μ©νλμ§ μκ³ κ³μλ€λ©΄, μ΄ μ±ν°λ₯Ό μ€ν΅νμ
λ μ’μ΅λλ€.
+
+///
+
+νκ²½ λ³μλ νμ΄μ¬ μ½λμ **λ°κΉ₯**μΈ, **μ΄μ 체μ **μ μ‘΄μ¬νλ λ³μμ
λλ€. νμ΄μ¬ μ½λλ λ€λ₯Έ νλ‘κ·Έλ¨μμ μ½μ μ μμ΅λλ€.
+
+νκ²½ λ³μλ μ ν리μΌμ΄μ
**μ€μ **μ μ²λ¦¬νκ±°λ, νμ΄μ¬μ **μ€μΉ** κ³Όμ μ μΌλΆλ‘ μ μ©ν©λλ€.
+
+## νκ²½ λ³μλ₯Ό λ§λ€κ³ μ¬μ©νκΈ°
+
+νμ΄μ¬ μμ΄λ, **μ
Έ (ν°λ―Έλ)** μμ νκ²½ λ³μλ₯Ό **μμ±** νκ³ μ¬μ©ν μ μμ΅λλ€.
+
+//// tab | Linux, macOS, Windows Bash
+
+<div class="termy">
+
+```console
+// You could create an env var MY_NAME with
+$ export MY_NAME="Wade Wilson"
+
+// Then you could use it with other programs, like
+$ echo "Hello $MY_NAME"
+
+Hello Wade Wilson
+```
+
+</div>
+
+////
+
+//// tab | Windows PowerShell
+
+<div class="termy">
+
+```console
+// Create an env var MY_NAME
+$ $Env:MY_NAME = "Wade Wilson"
+
+// Use it with other programs, like
+$ echo "Hello $Env:MY_NAME"
+
+Hello Wade Wilson
+```
+
+</div>
+
+////
+
+## νμ΄μ¬μμ νκ²½ λ³μ μ½κΈ°
+
+νμ΄μ¬ **λ°κΉ₯**μΈ ν°λ―Έλμμ(λ€λ₯Έ λꡬλ‘λ κ°λ₯) νκ²½ λ³μλ₯Ό μμ±λ ν μλ μκ³ , μ΄λ₯Ό **νμ΄μ¬μμ μ½μ μ μμ΅λλ€.**
+
+μλ₯Ό λ€μ΄ λ€μκ³Ό κ°μ `main.py` νμΌμ΄ μλ€κ³ ν©μλ€:
+
+```Python hl_lines="3"
+import os
+
+name = os.getenv("MY_NAME", "World")
+print(f"Hello {name} from Python")
+```
+
+/// tip | "ν"
+
+<a href="https://docs.python.org/3.8/library/os.html#os.getenv" class="external-link" target="_blank">`os.getenv()`</a> μ λ λ²μ§Έ μΈμλ λ°νν κΈ°λ³Έκ°μ
λλ€.
+
+μ¬κΈ°μλ `"World"`λ₯Ό λ£μκΈ°μ κΈ°λ³Έκ°μΌλ‘μ¨ μ¬μ©λ©λλ€. λ£μ§ μμΌλ©΄ `None` μ΄ κΈ°λ³Έκ°μΌλ‘ μ¬μ©λ©λλ€.
+
+///
+
+κ·Έλ¬λ©΄ ν΄λΉ νμ΄μ¬ νλ‘κ·Έλ¨μ λ€μκ³Ό κ°μ΄ νΈμΆν μ μμ΅λλ€:
+
+//// tab | Linux, macOS, Windows Bash
+
+<div class="termy">
+
+```console
+// Here we don't set the env var yet
+$ python main.py
+
+// As we didn't set the env var, we get the default value
+
+Hello World from Python
+
+// But if we create an environment variable first
+$ export MY_NAME="Wade Wilson"
+
+// And then call the program again
+$ python main.py
+
+// Now it can read the environment variable
+
+Hello Wade Wilson from Python
+```
+
+</div>
+
+////
+
+//// tab | Windows PowerShell
+
+<div class="termy">
+
+```console
+// Here we don't set the env var yet
+$ python main.py
+
+// As we didn't set the env var, we get the default value
+
+Hello World from Python
+
+// But if we create an environment variable first
+$ $Env:MY_NAME = "Wade Wilson"
+
+// And then call the program again
+$ python main.py
+
+// Now it can read the environment variable
+
+Hello Wade Wilson from Python
+```
+
+</div>
+
+////
+
+νκ²½λ³μλ μ½λ λ°κΉ₯μμ μ€μ λ μ μμ§λ§, μ½λμμ μ½μ μ μκ³ , λλ¨Έμ§ νμΌκ³Ό ν¨κ» μ μ₯(`git`μ 컀λ°)ν νμκ° μμΌλ―λ‘, ꡬμ±μ΄λ **μ€μ ** μ μ¬μ©νλ κ²μ΄ μΌλ°μ μ
λλ€.
+
+**νΉμ νλ‘κ·Έλ¨ νΈμΆ**μ λν΄μλ§ μ¬μ©ν μ μλ νκ²½ λ³μλ₯Ό λ§λ€ μλ μμ΅λλ€. ν΄λΉ νλ‘κ·Έλ¨μμλ§ μ¬μ©ν μ μκ³ , ν΄λΉ νλ‘κ·Έλ¨μ΄ μ€νλλ λμλ§ μ¬μ©ν μ μμ΅λλ€.
+
+κ·Έλ κ² νλ €λ©΄ νλ‘κ·Έλ¨ λ°λ‘ μ, κ°μ μ€μ νκ²½ λ³μλ₯Ό λ§λ€μ΄μΌ ν©λλ€:
+
+<div class="termy">
+
+```console
+// Create an env var MY_NAME in line for this program call
+$ MY_NAME="Wade Wilson" python main.py
+
+// Now it can read the environment variable
+
+Hello Wade Wilson from Python
+
+// The env var no longer exists afterwards
+$ python main.py
+
+Hello World from Python
+```
+
+</div>
+
+/// tip | "ν"
+
+<a href="https://12factor.net/config" class="external-link" target="_blank">The Twelve-Factor App: Config</a> μμ μ’ λ μμΈν μμλ³Ό μ μμ΅λλ€.
+
+///
+
+## νμ
κ³Ό κ²μ¦
+
+μ΄ νκ²½λ³μλ€μ μ€μ§ **ν
μ€νΈ λ¬Έμμ΄**λ‘λ§ μ²λ¦¬ν μ μμ΅λλ€. ν
μ€νΈ λ¬Έμμ΄μ νμ΄μ¬ μΈλΆμ μμΌλ©° λ€λ₯Έ νλ‘κ·Έλ¨ λ° λλ¨Έμ§ μμ€ν
(Linux, Windows, macOS λ± λ€λ₯Έ μ΄μ 체μ )κ³Ό νΈνλμ΄μΌ ν©λλ€.
+
+μ¦, νμ΄μ¬μμ νκ²½ λ³μλ‘λΆν° μ½μ **λͺ¨λ κ°**μ **`str`**μ΄ λκ³ , λ€λ₯Έ νμ
μΌλ‘μ λ³νμ΄λ κ²μ¦μ μ½λμμ μνν΄μΌ ν©λλ€.
+
+**μ ν리μΌμ΄μ
μ€μ **μ μ²λ¦¬νκΈ° μν νκ²½ λ³μ μ¬μ©μ λν μμΈν λ΄μ©μ [κ³ κΈ μ¬μ©μ κ°μ΄λ - μ€μ λ° νκ²½ λ³μ](./advanced/settings.md){.internal-link target=\_blank} μμ νμΈν μ μμ΅λλ€.
+
+## `PATH` νκ²½ λ³μ
+
+**`PATH`**λΌκ³ λΆλ¦¬λ, **νΉλ³ν** νκ²½λ³μκ° μμ΅λλ€. μ΄μ체μ (Linux, Windows, macOS λ±)μμ μ€νν νλ‘κ·Έλ¨μ μ°ΎκΈ°μν΄ μ¬μ©λ©λλ€.
+
+λ³μ `PATH`μ κ°μ Linuxμ macOSμμλ μ½λ‘ `:`, Windowsμμλ μΈλ―Έμ½λ‘ `;`μΌλ‘ ꡬλΆλ λλ ν λ¦¬λ‘ κ΅¬μ±λ κΈ΄ λ¬Έμμ΄μ
λλ€.
+
+μλ₯Ό λ€μ΄, `PATH` νκ²½ λ³μλ λ€μκ³Ό κ°μ΅λλ€:
+
+//// tab | Linux, macOS
+
+```plaintext
+/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin
+```
+
+μ΄λ μμ€ν
μ΄ λ€μ λλ ν 리μμ νλ‘κ·Έλ¨μ μ°ΎμμΌ ν¨μ μλ―Έν©λλ€:
+
+- `/usr/local/bin`
+- `/usr/bin`
+- `/bin`
+- `/usr/sbin`
+- `/sbin`
+
+////
+
+//// tab | Windows
+
+```plaintext
+C:\Program Files\Python312\Scripts;C:\Program Files\Python312;C:\Windows\System32
+```
+
+μ΄λ μμ€ν
μ΄ λ€μ λλ ν 리μμ νλ‘κ·Έλ¨μ μ°ΎμμΌ ν¨μ μλ―Έν©λλ€:
+
+- `C:\Program Files\Python312\Scripts`
+- `C:\Program Files\Python312`
+- `C:\Windows\System32`
+
+////
+
+ν°λ―Έλμ **λͺ
λ Ήμ΄**λ₯Ό μ
λ ₯νλ©΄ μ΄μ 체μ λ `PATH` νκ²½ λ³μμ λμ΄λ **κ° λλ ν 리**μμ νλ‘κ·Έλ¨μ **μ°Ύμ΅λλ€.**
+
+μλ₯Ό λ€μ΄ ν°λ―Έλμ `python`μ μ
λ ₯νλ©΄ μ΄μ 체μ λ ν΄λΉ λͺ©λ‘μ **첫 λ²μ§Έ λλ ν 리**μμ `python`μ΄λΌλ νλ‘κ·Έλ¨μ μ°Ύμ΅λλ€.
+
+μ°ΎμΌλ©΄ **μ¬μ©ν©λλ€**. κ·Έλ μ§ μμΌλ©΄ **λ€λ₯Έ λλ ν 리**μμ κ³μ μ°Ύμ΅λλ€.
+
+### νμ΄μ¬ μ€μΉμ `PATH` μ
λ°μ΄νΈ
+
+νμ΄μ¬μ μ€μΉν λ, μλ§ `PATH` νκ²½ λ³μλ₯Ό μ
λ°μ΄νΈ ν κ²μ΄λκ³ λ¬Όμ΄λ΄€μ κ²λλ€.
+
+//// tab | Linux, macOS
+
+νμ΄μ¬μ μ€μΉνκ³ κ·Έκ²μ΄ `/opt/custompython/bin` λλ ν 리μ μλ€κ³ κ°μ ν΄ λ³΄κ² μ΅λλ€.
+
+`PATH` νκ²½ λ³μλ₯Ό μ
λ°μ΄νΈνλλ‘ "μ"λΌκ³ νλ©΄ μ€μΉ κ΄λ¦¬μκ° `/opt/custompython/bin`μ `PATH` νκ²½ λ³μμ μΆκ°ν©λλ€.
+
+λ€μκ³Ό κ°μ΄ λ³΄μΌ μ μμ΅λλ€:
+
+```plaintext
+/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/opt/custompython/bin
+```
+
+μ΄λ κ² νλ©΄ ν°λ―Έλμ `python`μ μ
λ ₯ν λ, μμ€ν
μ΄ `/opt/custompython/bin`(λ§μ§λ§ λλ ν 리)μμ νμ΄μ¬ νλ‘κ·Έλ¨μ μ°Ύμ μ¬μ©ν©λλ€.
+
+////
+
+//// tab | Windows
+
+νμ΄μ¬μ μ€μΉνκ³ κ·Έκ²μ΄ `C:\opt\custompython\bin` λλ ν 리μ μλ€κ³ κ°μ ν΄ λ³΄κ² μ΅λλ€.
+
+`PATH` νκ²½ λ³μλ₯Ό μ
λ°μ΄νΈνλλ‘ "μ"λΌκ³ νλ©΄ μ€μΉ κ΄λ¦¬μκ° `C:\opt\custompython\bin`μ `PATH` νκ²½ λ³μμ μΆκ°ν©λλ€.
+
+```plaintext
+C:\Program Files\Python312\Scripts;C:\Program Files\Python312;C:\Windows\System32;C:\opt\custompython\bin
+```
+
+μ΄λ κ² νλ©΄ ν°λ―Έλμ `python`μ μ
λ ₯ν λ, μμ€ν
μ΄ `C:\opt\custompython\bin`(λ§μ§λ§ λλ ν 리)μμ νμ΄μ¬ νλ‘κ·Έλ¨μ μ°Ύμ μ¬μ©ν©λλ€.
+
+////
+
+κ·Έλμ, λ€μκ³Ό κ°μ΄ μ
λ ₯νλ€λ©΄:
+
+<div class="termy">
+
+```console
+$ python
+```
+
+</div>
+
+//// tab | Linux, macOS
+
+μμ€ν
μ `/opt/custompython/bin`μμ `python` νλ‘κ·Έλ¨μ **μ°Ύμ** μ€νν©λλ€.
+
+λ€μκ³Ό κ°μ΄ μ
λ ₯νλ κ²κ³Ό κ±°μ κ°μ΅λλ€:
+
+<div class="termy">
+
+```console
+$ /opt/custompython/bin/python
+```
+
+</div>
+
+////
+
+//// tab | Windows
+
+μμ€ν
μ `C:\opt\custompython\bin\python`μμ `python` νλ‘κ·Έλ¨μ **μ°Ύμ** μ€νν©λλ€.
+
+λ€μκ³Ό κ°μ΄ μ
λ ₯νλ κ²κ³Ό κ±°μ κ°μ΅λλ€:
+
+<div class="termy">
+
+```console
+$ C:\opt\custompython\bin\python
+```
+
+</div>
+
+////
+
+μ΄ μ 보λ [κ°μ νκ²½](virtual-environments.md){.internal-link target=\_blank} μ λν΄ μμλ³Ό λ μ μ©ν κ²μ
λλ€.
+
+## κ²°λ‘
+
+μ΄ λ¬Έμλ₯Ό μ½κ³ **νκ²½ λ³μ**κ° λ¬΄μμ΄κ³ νμ΄μ¬μμ μ΄λ»κ² μ¬μ©νλμ§ κΈ°λ³Έμ μΌλ‘ μ΄ν΄νμ
¨μ κ²λλ€.
+
+λν <a href="https://ko.wikipedia.org/wiki/νκ²½_λ³μ" class="external-link" target="_blank">νκ²½ λ³μμ λν μν€νΌλμ(νκ΅μ΄)</a>μμ μ΄μ λν΄ μμΈν μμλ³Ό μ μμ΅λλ€.
+
+λ§μ κ²½μ°μμ, νκ²½ λ³μκ° μ΄λ»κ² μ μ©νκ³ μ μ© κ°λ₯νμ§ λ°λ‘ λͺ
ννκ² μ μλ μμ΅λλ€. νμ§λ§ κ°λ°ν λ λ€μν μλ리μ€μμ κ³μ λνλλ―λ‘ μ΄μ λν΄ μλ κ²μ΄ μ’μ΅λλ€.
+
+μλ₯Ό λ€μ΄, λ€μ μΉμ
μΈ [κ°μ νκ²½](virtual-environments.md)μμ μ΄ μ λ³΄κ° νμν©λλ€.