https://github.com/amamov/window-hellopython
Python Guide For Window Users
https://github.com/amamov/window-hellopython
Last synced: 3 months ago
JSON representation
Python Guide For Window Users
- Host: GitHub
- URL: https://github.com/amamov/window-hellopython
- Owner: amamov
- Created: 2024-09-10T12:56:10.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2025-03-21T04:58:17.000Z (7 months ago)
- Last Synced: 2025-05-17T12:14:37.644Z (5 months ago)
- Language: Python
- Homepage:
- Size: 5.86 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Window Python Setting
1. MS Store에서 Python 최신 버전 다운로드
2. VSCode Extension에서 Python, Black-Formatter 설치
3. VSCode json 설정에서 아래 코드 추가
- json 설정 : ctrl + shift + p > settings.json (Preferences: Open User Settings)
```json
{
"[python]": {
"editor.formatOnSave": true,
"editor.defaultFormatter": "ms-python.black-formatter"
},
"[markdown]": {
"editor.formatOnSave": true,
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"explorer.confirmDragAndDrop": false,
"explorer.confirmDelete": false
}```
4. 가상환경 사용
- 가상환경 생성 : `python -m venv 가상환경이름`
- 가상환경 활성화
- MAC : `source 가상환경이름/Scripts/activate`
- Window : `.\venv\Scripts\activate`
- 권한 에러 발생 시
1. Windows PowerShell 관리자로 실행
2. `Set-ExecutionPolicy RemoteSigned` 입력후 Y 입력- 가상환경 비활성화 : `deactivate`
- 설치된 패키지 리스트 txt 파일로 변환 : `pip freeze > requirements.txt`
- 변환된 txt 파일로 패키지 설치 : `pip install -r 파일이름.txt`
5. 타입 체킹
- VSCode settings --> python.analysis.typeCheckingMode