Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | ||||||
2 | 3 | 4 | 5 | 6 | 7 | 8 |
9 | 10 | 11 | 12 | 13 | 14 | 15 |
16 | 17 | 18 | 19 | 20 | 21 | 22 |
23 | 24 | 25 | 26 | 27 | 28 | 29 |
30 | 31 |
Tags
- 문제개선
- Google Play
- ios
- SharedPreference
- Jitpack
- targetsdk
- 초보개발자
- Developer
- Java
- 코루틴
- 안드로이드
- chatGPT
- Android Studio
- coroutines
- 문제해결
- Swift
- Android
- 개발자도전기
- 클래스 설계
- compose
- Kotlin
- EncryptedSharedPreferences
- 앱심사경험
- 상태관리
- 개발시작
- SwiftUI
- 앱개발
- foregroundservice
- WorkManager
- 앱심사대응
Archives
- Today
- Total
개발린생
[Python] macOS에서 homebrew 명령어를 통해 설치하고 VSCode에서 실행하기 본문
학교에서 수강하는 파이썬프로그래밍 과목을 수강하며 파이썬 시작 /^0^/
학교 강의는 윈도우 환경에서 작업하지만 나는 맥북을 사용한다.
그러므로 chatGPT의 도움을 받아 파이썬을 설치하고 실행해보겠다.
Homebrew를 사용한 Python 설치 명령어
brew install python
나의 경우 위 명령어 실행 후 아래 에러가 발생했다.
==> Deleted Installed Formulae
pkg-config ✘
pkg-config ✘는 pkg-config라는 Homebrew 패키지가 삭제되었음을 의미하여 아래 명령어를 통해 패키지 재설치를 진행함
brew install pkg-config
VSCode 설치
VSCode 설치 링크 : https://code.visualstudio.com/
Visual Studio Code - Code Editing. Redefined
Visual Studio Code is a code editor redefined and optimized 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
VSCode에서 프로젝트 생성
- 프로젝트 폴더 생성 (ex. mini_game_project)
- VSCode에서 해당 프로젝트 폴더 열기 (ex. mini_game_project)
- 왼쪽 파일 탐색기 프로젝트 폴더에 app.py 파일 생성 및 코드 작성
def main():
print("Hello from VS Code!")
if __name__ == "__main__":
main()
- Extensions에서 Python 검색 후 install
- app.py 파일을 열고 상단 ▶️ RUN 클릭
- 터미널에 Hello from VS Code! 출력되면 완료!
환경 셋팅은 완료됐으니 과제하러.. 👋
'Dev Lab ✧.·˚ > etc.' 카테고리의 다른 글
[MySQL] macOS에서 homebrew 명령어를 통해 설치 및 실행하기 (9) | 2024.10.03 |
---|