소개

Python Launcher for Windows py는
- Windows 플랫폼에서
- Python 스크립트를 실행하거나
- 특정 Python 버전을 호출할 때 사용하는 명령줄 도구.
Detail
특히 여러 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
같이보면 좋은 자료들
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