How to fix anaconda prompt failure with init_fs_encoding error

Viewed 18

Env:Win7 python38

I used to lunch the prompt script in start menu. Today It tells me a encoding error and spyder is not working too. How to fix it?

Python path configuration:
  PYTHONHOME = (not set)
  PYTHONPATH = (not set)
  program name = 'd:\ProgramData\Anaconda3\python.exe'
  isolated = 0
  environment = 1
  user site = 1
  import site = 1
  sys._base_executable = '\u0158E'
  sys.base_prefix = '.'
  sys.base_exec_prefix = '.'
  sys.executable = '\u0158E'
  sys.prefix = '.'
  sys.exec_prefix = '.'
  sys.path = [
    'd:\\ProgramData\\Anaconda3\\python38.zip',
    '.\\DLLs',
    '.\\lib',
    '',
  ]
Fatal Python error: init_fs_encoding: failed to get the Python codec of the file
system encoding
Python runtime state: core initialized
ModuleNotFoundError: No module named 'encodings'

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


0 Answers
Related