title: PyCharm: Fatal Python error: init_fs_encoding: failed to get the Python codec of the filesystem encoding
body: <p>Trying to run &quot;helloworld.py&quot; in PyCharm 2020.2 which I thought I'd installed via Anaconda</p>
  <p>this error appears in a few threads but the discussions are always about stuff that's a bit beyond a hello world program. I think it might be something to do with this PYTHONPATH thing but I don't understand where this is set (its not in Windows system environment variables), or who set it, or how to fix it.</p>
  <blockquote>
  <p>C:\Users\DrMan\anaconda3\python.exe
  C:/Users/DrMan/AppData/Local/Programs/Python/Python39/helloworld.py
  Python path configuration:<br />
  PYTHONHOME = (not set)<br />
  PYTHONPATH ='C:\Users\DrMan\AppData\Local\Programs\Python\Python39'<br />
  program name = 'C:\Users\DrMan\anaconda3\python.exe'<br />
  isolated = 0<br />
  environment = 1<br />
  user site = 1<br />
  import site = 1<br />
  sys._base_executable = 'C:\Users\DrMan\anaconda3\python.exe'<br />
  sys.base_prefix = ''<br />
  sys.base_exec_prefix = ''   sys.executable =
  'C:\Users\DrMan\anaconda3\python.exe'<br />
  sys.prefix = ''<br />
  sys.exec_prefix = ''<br />
  sys.path = [
  'C:\Users\DrMan\AppData\Local\Programs\Python\Python39',
  'C:\Users\DrMan\anaconda3\python38.zip',
  'C:\Users\DrMan\anaconda3',   ]
  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'</p>
  <p>Current thread 0x000098b8 (most recent call first): </p>
  <p>Process finished with exit code 1</p>
  </blockquote>