擅长:python、mysql、java
<p>我要面对同样的问题,我已经进口了6个,appdir和包装.要求在我的代码和转换成exe使用cx冻结现在它是为我工作</p>
<pre><code>from win10toast import ToastNotifier
import six
import appdirs
import packaging.requirements
toaster = ToastNotifier()
toaster.show_toast(
"Testing pyinstaller",
"Trying to find root cause",
duration=10, icon_path="python.ico")
</code></pre>
<p>注:
我们也可以在Pyinstaller中使用这个包作为隐藏的\u导入,但是我还没有在Pyinstaller中测试过</p>