Trying to run "helloworld.py" in PyCharm 2020.2 which I thought I'd installed via Anaconda
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.
C:\Users\DrMan\anaconda3\python.exe C:/Users/DrMan/AppData/Local/Programs/Python/Python39/helloworld.py Python path configuration:
PYTHONHOME = (not set)
PYTHONPATH ='C:\Users\DrMan\AppData\Local\Programs\Python\Python39'
program name = 'C:\Users\DrMan\anaconda3\python.exe'
isolated = 0
environment = 1
user site = 1
import site = 1
sys._base_executable = 'C:\Users\DrMan\anaconda3\python.exe'
sys.base_prefix = ''
sys.base_exec_prefix = '' sys.executable = 'C:\Users\DrMan\anaconda3\python.exe'
sys.prefix = ''
sys.exec_prefix = ''
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'Current thread 0x000098b8 (most recent call first):
Process finished with exit code 1