주의: 이 문서의 글은 Python 3.13까지에 해당하는 내용임.
Python 3.14+에서는 Python Install Manager로 py 명령어를 봐야함:
2026.03.16 - [Python] - py 와 python 의 차이: Python Launcher, PIM, and Python
py 와 python 의 차이: Python Launcher, PIM, and Python
Windows에서 python과 py의 차이Windows에서 Python을 실행할 때 실행 명령어로 다음의 두가지가 사용됨:pythonpy겉보기에는 비슷하지만, 이들 동작은 내부적으로 차이가 있고,가상환경이나, uv, conda 등의
ds31x.tistory.com
Python 3.14 이후의 py명령어 사용은 다음을 참고
2026.03.16 - [Python] - Python Install Manager(PIM) 간단 사용법
Python Install Manager(PIM) 간단 사용법
1. 개요 및 시스템 호환성Windows 전용: :PIM은 윈도우 환경의 파이썬 설치 관리를 위한 도구임.macOS나 Linux는 uv 혹은 pyenv 사용이 권장됨 (uv를 보다 추천함).개인적으론 conda를 선호.표준 방식 전환: :
ds31x.tistory.com
소개

Python Launcher for Windows py는
- Windows 플랫폼에서
- Python 스크립트를 실행하거나
- 특정 Python 버전을 호출할 때 사용하는 명령줄 도구.
py --list 를 통해 사용가능한 여러 버전의 python을 확인 가능함.
py -3.9 와 같은 형태로 특정 버전의 python을 지정하여 실행할 수도 있음: 뒤에 실행할 main script를 놓아도 됨.
참고로, Python Launcher 의 major version과 minor version 만 인식하므로 이를 반영하여 py -3.9 형태로 실행할 것.
2024.09.19 - [Python] - [Etc] SW Version: Semantic Versioning + packaging.version
[Etc] SW Version: Semantic Versioning + packaging.version
1. Semantic Versioning SystemSemantic Versioning (SemVer) 시스템에 따라,소프트웨어에서 major와 minor, patch (or micro) 버전을 구분하여 버전을 매김.Python에서는 PEP 440 에서 버전 표기 방식을 지정하고 있으며 SemVe
ds31x.tistory.com
Detail
Windows에서
여러 Python 버전(예: 2.7, 3.8, 3.11 등)이 설치된 환경에서 특정 버전을 지정해 실행하거나,
스크립트 파일의 shebang(#!)을 읽어 적절한 Python 버전을 자동으로 선택할 수 있음.
- Python Launcher는 Python 3.3부터 Windows에 기본적으로 포함됨.
- macOS, Linux 등에서는 #!/usr/bin/env python 같은 shebang 라인으로
해당 기능을 이전부터 제공하기 때문에 Windows에만 있음.
Python Launcher for Windows는 다음과 같이 Windows에서 실행할 Python Interpreter의 버전을 지정할 수 있음.
#!python3.13
print("Hello, World!")
2023.06.20 - [개발환경] - [Shell] env and Shebang line
[Shell] env and Shebang line
env 명령어는 주로environment variable들을 확인하거나특정 명령어 수행할 때 특정 environment variable을 지정해주는데 사용된다.The env command allows youto display your current environment or run a specified commandin a chan
ds31x.tistory.com
기본적으로 python은 환경변수에서 지정된 순서를 따라 가장 먼저 등장하는 Python 버전이 선택됨.
py로 기본으로 수행할 Python 버전은 다음의 설정 파일 py.ini에 지정할 수 있음 (이 경우, python과 py가 각기 다른 버전의 python의 실행이 가능)
- 사용자별 설정: %LOCALAPPDATA%\py.ini
- 시스템 전체 설정: %WINDIR%\py.ini
같이보면 좋은 자료들
2025.03.06 - [Python] - [Py] How to Install Python on Windows from Python.org
[Py] How to Install Python on Windows from Python.org
이 문서는 python.org 에서 제공하는 Python을 Windows에 설치하는 방법을 단계별로 설명함. 일반적으로는 conda등을 이용한 설치를 보다 선호함.2025.03.02 - [개발환경] - [Tool] conda 사용법 - Anaconda and Minico
ds31x.tistory.com
https://docs.python.org/3/using/windows.html?utm_source=chatgpt.com#launcher
4. Using Python on Windows
This document aims to give an overview of Windows-specific behaviour you should know about when using Python on Microsoft Windows. Unlike most Unix systems and services, Windows does not include a ...
docs.python.org
'Python' 카테고리의 다른 글
| [Py] dis 모듈 - Python (1) | 2025.03.11 |
|---|---|
| [DL] Tensor 다루기 기초 - PyTorch 중심 (0) | 2025.03.07 |
| [Py] How to Install Python on Windows from Python.org (0) | 2025.03.06 |
| [PyTorch] torchvision.transforms 사용법 - transforms란? (0) | 2025.01.12 |
| [Py] io.StringIO 와 io.BytesIO (0) | 2024.12.03 |