[Python] pip install 오류('cp949' codec can't decode byte 0xe2 in position 1091: illegal multibyte sequence)

2022. 4. 4. 18:54·개발/Python
728x90

윈도우에 pip install 하는 중에 오류 발생..

발생한 오류

UnicodeDecodeError: 'cp949' codec can't decode byte 0xe2 in position 1091: illegal multibyte sequence

 

해결방법(encoding='utf-8' 구문 추가)

- encoding='utf-8' 추가

 

1. 파이썬설치경로\Python\Python37\Lib\distutils\text_file.py (115번째줄)

encoding='utf-8' 구문 추가

2. 파이썬설치경로\python\python37\lib\configparser.py (695번째줄)

encoding=encoding 삭제또는 주석 후 encoding='utf-8' 구문 추가

 

 

참고

 

https://stackoverflow.com/questions/10487563/unicode-error-handling-with-python-3s-readlines

 

Unicode error handling with Python 3's readlines()

I keep getting this error while reading a text file. Is it possible to handle/ignore it and proceed? UnicodeEncodeError: ‘charmap’ codec can’t decode byte 0x81 in position 7827: character maps...

stackoverflow.com

 

 

 

 

728x90
저작자표시 비영리 변경금지 (새창열림)

'개발 > Python' 카테고리의 다른 글

[python/linux] 파이썬 nohup 사용법(백그라운드,데몬실행)  (0) 2022.12.09
[오라클/파이썬] DPI-1047오류 해결방법(oracledb)  (0) 2022.10.12
[Linux/Ubuntu] Ubuntu 20.04에 python3.7 설치  (0) 2021.01.27
[python] ImageAI 사용해서 image Object Detection(1)  (0) 2021.01.22
[python] 오프라인에서 pip install 하여 package 설치하기  (0) 2020.11.03
'개발/Python' 카테고리의 다른 글
  • [python/linux] 파이썬 nohup 사용법(백그라운드,데몬실행)
  • [오라클/파이썬] DPI-1047오류 해결방법(oracledb)
  • [Linux/Ubuntu] Ubuntu 20.04에 python3.7 설치
  • [python] ImageAI 사용해서 image Object Detection(1)
호이호이209
호이호이209
이것저것 기록하는 메모장
    250x250
  • 호이호이209
    R=VD
    호이호이209
    • R=VD전체글 (83) N
      • 개발 (63) N
        • Linux (19)
        • 머신러닝 (10)
        • Git (6)
        • Python (9)
        • 프로그래밍 언어 (2)
        • Docker (5)
        • ETC (12) N
      • 일상기록 (20)
        • 여행 (5)
        • 일상-이모저모 (8)
  • 인기 글

  • 최근 글

  • hELLO· Designed By정상우.v4.10.3
호이호이209
[Python] pip install 오류('cp949' codec can't decode byte 0xe2 in position 1091: illegal multibyte sequence)
상단으로

티스토리툴바