본문 바로가기

개인용

다음 에러날때

Fatal Python error: init_import_site: Failed to import the site module
Python runtime state: initialized
Traceback (most recent call last):
  File "C:\Users\User\AppData\Local\Programs\Python\Python310\lib\site.py", line 617, in <module>
    main()
  File "C:\Users\User\AppData\Local\Programs\Python\Python310\lib\site.py", line 604, in main
    known_paths = addsitepackages(known_paths)
  File "C:\Users\User\AppData\Local\Programs\Python\Python310\lib\site.py", line 387, in addsitepackages
    addsitedir(sitedir, known_paths)
  File "C:\Users\User\AppData\Local\Programs\Python\Python310\lib\site.py", line 226, in addsitedir
    addpackage(sitedir, name, known_paths)
  File "C:\Users\User\AppData\Local\Programs\Python\Python310\lib\site.py", line 179, in addpackage
    for n, line in enumerate(f):
UnicodeDecodeError: 'cp949' codec can't decode byte 0xed in position 29: illegal multibyte sequence

 

site.py에서 utf-8으로 변경하면 됨

주석으로도 달려있음

'개인용' 카테고리의 다른 글

재미있는 github  (0) 2024.02.04
sdxl 학습법  (0) 2024.01.28
LLM 이용한 랭체인 노코드툴  (0) 2024.01.26
240124  (0) 2024.01.24
LORA (Low-Rank Adaptation) vs Adapter  (0) 2024.01.15