Programming/Python
[Python] Pycharm 에러 해결법 정리
개발자 쓔쓔
2023. 1. 14. 22:04
반응형
1. 인코딩 에러
(debug를 진행 할 때 나타나는 에러였다.)
Fatal Python error: init_stdio_encoding: failed to get the Python codec name of the stdio encoding
Python runtime state: core initialized
LookupError: unknown encoding: x-windows-949
Current thread 0x00003934 (most recent call first):
<no Python frame>
윈도우 기준 : Ctrl + alt +s 를 눌러 설정창에 진입한다 (메뉴 창으로는 : File > Settings)
셋팅 창을 띄우고나면, 검색 영역에 "encoding"을 검색하여
Encoding을 바꿀수 있는 메뉴를 확인 할 수 있다.
1-1 ) Editor > File Encodings > Project Encoding을 "UTF-8"로 변경해준다.
1-2 ) 1-1로도 안되는경우, Editor > General > Console > Default Encoding을 "UTF-8"로 변경한다.
728x90
반응형