As I was trying to install mysqlclient for my django project, I encountered a issue which is getting very difficult to resolve despite of other helps in similar questions already asked. I almost tried many but could not sort it out since my environment is set correctly.
The issue is:
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'
Looking at the syspath, I diagnosed that the issue might be with the syspath
sys.path = [
'C:\\Users\\atifm\\Envs\\Django\\Scripts\\python38.zip',
'.\\DLLs',
'.\\lib',
'c:\\users\\atifm\\appdata\\local\\programs\\python\\python38-32',
]
But actually python38-32 doesnot exist. I have Python38 only which is 64 bit.
Does that make sense? Can anyone help me out with this?