我正试图在python3.6.9中构建一个屏幕阅读器,作为一项大学作业。
python脚本运行良好,但是当我尝试使用PyInstaller 4.3创建一个应用程序时,它会显示错误消息:
PyInstaller.exceptions.ImportErrorWhenRunningHook: Failed to import module \_\_PyInstaller\_hooks\_0\_pydoc required by hook for module /.../site-packages/PyInstaller/hooks/hook-pydoc.py. Please check whether module \_\_PyInstaller\_hooks\_0\_pydoc actually exists and whether the hook is compatible with your version of /.../site-packages/PyInstaller/hooks/hook-pydoc.py:
它还在构建可执行文件时显示了许多警告。
发布于 2021-06-09 09:59:28
作为解决办法,您可以尝试:
pyinstaller your_file.py --exclude-module pydoc
https://stackoverflow.com/questions/67815939
复制相似问题