하루하루

[python] Mac m4 vscode에서 python 사용하기 본문

IT/🍎

[python] Mac m4 vscode에서 python 사용하기

Jo.o 2025. 1. 16. 10:53
반응형

1. vscode 설치 

 

Visual Studio Code - Code Editing. Redefined

Visual Studio Code redefines AI-powered coding with GitHub Copilot for building and debugging modern web and cloud applications. Visual Studio Code is free and available on your favorite platform - Linux, macOS, and Windows.

code.visualstudio.com

 

2. python 설치

 

 

Download Python

The official home of the Python Programming Language

www.python.org

 

기존 버전 삭제 방법

더보기

터미널 열기 (Cmd + Space → "터미널" 검색)

# 프레임워크 제거
sudo rm -rf /Library/Frameworks/Python.framework

# 앱 삭제
sudo rm -rf /Applications/Python*

# 심볼릭 링크 제거
sudo rm -f /usr/local/bin/python3
sudo rm -f /usr/local/bin/pip3

 

3. 확장팩 설치

* python

* python Extension Pack

* autopep8 (코드 자동정렬)

 

4. 가상환경 (필요한 경우)

python -m venv .venv
source .venv/bin/activate  # Mac/Linux
반응형