“Pyinstaller –name NAME –onefile –windowed python.py”
The above command is used to convert a .py file into a .exe file. The above command gets executed and the .exe file is found inside the dist folder.
While running the .exe file, an error occurs. A snapshot of the error has been pasted below.
Whie runing .exe file
Pyinstaller –name NAME –windowed python.py.
This commend also tried, but could not get rid of the error.