I am trying to convert a very basic code to exe.
I am using Python 3.6, and I installed cx_Freeze 5.1
using the pip command. It installed correctly. I made the setup.py
file, and put it and the code in the Python directory.
When I ran the command "python xyz.py build
" it started the build process, and completed it without any error. When I tried to run the executable file of my code, I get an error.
Fatal Python error: Py-Initialize: unable to load the file system codec. Traceback......line 31 in ImportError: No Module named "codecs"