使用 PyInstaller 时 plyer 的问题
problem with plyer when using PyInstaller
我做了一个计时器,当时间到了时,它会显示使用模块 plyer
的通知,但是当我使用命令 pyinstaller timer.pyw
和 运行 它,通知不显示并且 window 只是崩溃。我认为这是因为 pyinstaller
不支持 plyer
。我试过使用 --hidden-import
选项,但它仍然不起作用。我该如何解决这个问题?
我刚刚转到 python 的 site-packages 文件夹,对我来说是 c:\python\Lib\site-packages\
并将 plyer 文件夹复制到 PyInstaller 目录。
我做了一个计时器,当时间到了时,它会显示使用模块 plyer
的通知,但是当我使用命令 pyinstaller timer.pyw
和 运行 它,通知不显示并且 window 只是崩溃。我认为这是因为 pyinstaller
不支持 plyer
。我试过使用 --hidden-import
选项,但它仍然不起作用。我该如何解决这个问题?
我刚刚转到 python 的 site-packages 文件夹,对我来说是 c:\python\Lib\site-packages\
并将 plyer 文件夹复制到 PyInstaller 目录。