Python 使用pyinstaller打包后Plyer TTS不工作

Python 使用pyinstaller打包后Plyer TTS不工作,python,python-3.x,kivy,pyinstaller,Python,Python 3.x,Kivy,Pyinstaller,我到处寻找错误的线索,但到目前为止我还没有发现任何信息。我刚刚制作了一个简单的应用程序,从plyer导入tts,在点击一个按钮后说一个小句子。在我使用pyinstaller打包文件之前,它在运行时工作得非常好。使用pyinstaller后,我得到 File "site-packages/plyer/facades/tts.py", line 11, in speak File "site-packages/plyer/facades/tts.py", line 16, in _spe

我到处寻找错误的线索,但到目前为止我还没有发现任何信息。我刚刚制作了一个简单的应用程序,从plyer导入tts,在点击一个按钮后说一个小句子。在我使用pyinstaller打包文件之前,它在运行时工作得非常好。使用pyinstaller后,我得到

   File "site-packages/plyer/facades/tts.py", line 11, in speak
   File "site-packages/plyer/facades/tts.py", line 16, in _speak
 NotImplementedError

任何帮助都将不胜感激。谢谢我正在OS X上使用python 3.5。

我将检查plyer是如何实现TTS的。如果它调用一个库,如果你的包不包含该库,它可能会以这种方式失败。我复制了plyer文件夹并将其粘贴到应用程序中,这似乎解决了问题。有没有办法告诉pyinstaller包含它?它会自动包含我的其他应用程序的其他包,如openpyxl。@AccPy在PyInstaller的规范中有类似于
hiddenimports
的东西,或者类似的东西,应该包含您在其中明确列出的包。