0

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?

Meeraj Adhikari
  • 302
  • 5
  • 13
  • why is your sys.path including a zip file? It certainly makes sense in removing paths that you don't have; but, where is this error coming from? – ewong Jul 10 '20 at 06:52
  • that file is added during the default installation of python. No changes from my side on that file. The error arises whenever any python code is assumed to run. – Meeraj Adhikari Jul 10 '20 at 06:57

0 Answers0