pyinstaller可以将程序打包成exe文件在windows上执行,如:
pyinstaller -F main.py
可以将文件生成成一个main.exe的文件,但是在打包完成运行的时候发生了这样的报错:
D:\pyworkspace\bus4mssql\dist>D:\pyworkspace\bus4mssql\dist\main.exe
Traceback (most recent call last):
File "main.py", line 9, in <module>
File "d:\python3.6.8\lib\site-packages\PyInstaller\loader\pyimod03_importers.p
y", line 493, in exec_module
exec(bytecode, module.__dict__)
File "com