[Pycharm] pycharm loading 시 인코딩 때문에 오류가 나는 경우

 

requirements.txt를 pycharm IDE에서 상단에 나타나는 노란색 bar를 클릭해서 설치하려는 경우에

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

위와 같은 오류가 발생했습니다.

두 가지를 설정해주니 정상 동작했습니다.

 

1. settings > editor > general > console 에서 utf-8로 변경

2. settings > editor > file encoding 에서 프로젝트 인코딩을 utf-8로 변경

 

 

참조한 블로그

https://codingcoding.tistory.com/609

댓글

Designed by JB FACTORY