问题
I have a Python script that I wrote on my personal Windows computer. It's very, very basic and just shows a tkinter window with a couple labels. I compiled it into an .exe file using pyinstaller with the --onefile option. When I run that .exe file on that same computer, it all works just fine.
If I copy the .exe file to a coworker's computer (also Windows), running it causes the command prompt to flash an error quickly. Opening the command prompt and executing it by typing the path, this is the error I receive:
I've seen online that tcl/encoding/ascii.enc hangs out in the python installation folder. Unfortunately, installing python and/or changing permissions for these files on my coworkers' computers is simply not an option (IT is hyper-strict about this). Is there a way to navigate this error?
来源:https://stackoverflow.com/questions/60064248/error-opening-python-exe-files-on-other-windows-computers