Answer the question
In order to leave comments, you need to log in
Why doesn't the .exe created from .py run?
Good afternoon.
I made an exe from a python script
If I run the .py file itself, then everything is processed
When I run the .exe, an error occurs:
_______________________________________________________________________________
Fatal Python error: Py_Initialize: unable to load the file system codec
ModuleNotFoundError: No module named 'encodings'
Current thread 0x00003f48 ( most recent call first):
_________________________________________________________________________
Path has no path other than the correct Python directory, what could be the problem?
OS - Windows 10
Answer the question
In order to leave comments, you need to log in
Firstly - The paths here are not important at all, because. the interpreter and a piece of python libraries are pulled into the executable. Secondly - Write what you made the executable with. Thirdly - Why do you need a Python executable? Fourth - Pure advice, do not make executables from Python code, this is a useless perversion, because the file is large and slow, use C++ or C# instead
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question