由Pyinstaller生成的exe无法正常工作

时间:2020-04-18 05:49:48

标签: python pyinstaller bcrypt

嗨,我已经使用tkinter模块来创建GUI应用程序。为了加密密码,我使用了bcrypt模块。在源代码中,它工作正常,但是当我使用Pyinstaller创建可执行文件时,可执行文件未打开。我收到“致命错误”。

所以我试图创建一个示例代码(Sample_testing.py),该示例代码如下所示导入了bcrypt

from tkinter import *
import bcrypt

root = Tk()
root.mainloop()

我已经使用pyinstaller作为pyinstaller --onefile -w Sample_Testing.py创建了exe

当我打开生成的exe时,出现了这样的错误

Noted Error

我正在使用Python 3.7.4和Pyinstaller 3.6。任何帮助将不胜感激

0 个答案:

没有答案