Python Forum

Full Version: Fatal Error in Python
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I'm facing this problem for about 4 months I've searched everywhere but no solution.

Fatal Python error: initfsencoding: unable to load the file system codec
ModuleNotFoundError: No module named 'encodings'

Current thread 0x00004e04 (most recent call first):

my Os is Windows 10

please give me any solution when I can't code anything it gives me that error. it happened after I installed another python 2 and I'm using python 3.

Thanks very much.
Please, post your code (minimal, complete and verifiable example) in python tags. Post full traceback in error tags.
Tell us more where this encodings module is expected to come from.
I think it happened after I installed another version of python .. I am using python 3 and installed python 2 by accident. I am still a beginner so I code something like this.
import math
print(math.pi)
Radius = float(input("enter the radius"))
Area = round(math.pi,2)*math.pow(Radius,2)
print("Area =",Area)
I don't know what is cx_freeze.
I am puzzled and have no idea what may cause this problem.
cx_Freeze is a set of scripts and modules for freezing Python scripts into executables.
I don't know either, but is there anything that I can do to make all those things return back to its original? like a checkpoint or something, is this error related to system variables?
more Evidence.

İmage