Error opening Python .exe files on other Windows computers

孤者浪人 提交于 2020-02-06 08:02:09

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!