首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >Pyinstaller未能导入模块__PyInstaller_hooks_0_pydoc

Pyinstaller未能导入模块__PyInstaller_hooks_0_pydoc
EN

Stack Overflow用户
提问于 2021-06-03 05:39:44
回答 1查看 1.9K关注 0票数 1

我正试图在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:

它还在构建可执行文件时显示了许多警告。

EN

回答 1

Stack Overflow用户

发布于 2021-06-09 09:59:28

作为解决办法,您可以尝试:

pyinstaller your_file.py --exclude-module pydoc

票数 2
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/67815939

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档