에러가 있는데 Fatal Python error: init_fs_encoding: failed to get the Python codec of the filesystem encoding Python runtime state: core initialized ModuleNotFoundError: No module named 'encodings'

Asked 1 years ago, Updated 1 years ago, 680 views

몇 달 동안 아무 문제 없이 PyCharm으로 작업했구요.

어떤 변경도 하지 않았습니다.

(외부 라이브러리에서 Pycharm에 문제를 일으킬 수 있는 항목을 실수로 삭제했는지까지는 잘 모르겠습니다.)

cmd로 python.exe를 실행하면 다음 오류가 발생합니다.

PYTHONPATH가 다르다는 점만 다른데 PyCharm으로 실행해도 같은 에러가 뜹니다.

PYTHONHOME = (not set)
  PYTHONPATH = (not set)
  program name = 'python.exe'
  isolated = 0
  environment = 1
  user site = 1
  import site = 1
  sys._base_executable = 'C:\\Users\\LXVFL\\AppData\\Local\\Programs\\Python\\Python310\\python.exe'
  sys.base_prefix = ''
  sys.base_exec_prefix = ''
  sys.platlibdir = 'lib'
  sys.executable = 'C:\\Users\\LXVFL\\AppData\\Local\\Programs\\Python\\Python310\\python.exe'
  sys.prefix = ''
  sys.exec_prefix = ''
  sys.path = [
    'C:\\Users\\LXVFL\\AppData\\Local\\Programs\\Python\\Python310\\python310.zip',
    'C:\\Users\\LXVFL\\AppData\\Local\\Programs\\Python\\Python310\\Lib\\',
    'C:\\Users\\LXVFL\\AppData\\Local\\Programs\\Python\\Python310\\DLLs\\',
    'C:\\Users\\LXVFL\\AppData\\Local\\Programs\\Python\\Python310',
  ]
Fatal Python error: init_fs_encoding: failed to get the Python codec of the filesystem encoding
Python runtime state: core initialized
ModuleNotFoundError: No module named 'encodings'

Current thread 0x00002e60 (most recent call first):
  <no Python frame>

 

해결 방법 좀 알려주세요! 

python

2022-06-03 11:11

1 Answers

같은 문제가 있었는데 python 재설치를 한 다음 없어졌습니다.


2022-06-03 11:14

If you have any answers or tips


© 2023 OneMinuteCode. All rights reserved.