首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >Pyinstaller无法导入模块__PyInstaller_hooks_0_IPython

Pyinstaller无法导入模块__PyInstaller_hooks_0_IPython
EN

Stack Overflow用户
提问于 2021-08-15 01:01:37
回答 1查看 295关注 0票数 0

我正在建立一个项目,只是为了好玩,我想把它变成一个可执行文件,但它给了我错误

PyInstaller.exceptions.ImportErrorWhenRunningHook: Failed to import module __PyInstaller_hooks_0_IPython required by hook for module c:\users\waddy\appdata\local\programs\python\python39\lib\site-packages\_pyinstaller_hooks_contrib\hooks\stdhooks\hook-IPython.py. Please check whether module __PyInstaller_hooks_0_IPython actually exists and whether the hook is compatible with your version of c:\users\waddy\appdata\local\programs\python\python39\lib\site-packages\_pyinstaller_hooks_contrib\hooks\stdhooks\hook-IPython.py:

我正在使用python版本的3.9.1和pyinstaller 4.5.1。我尝试使用给定here的解决方案,但它给出了另一个错误AttributeError: Module 'PyQt5' has no attribute '__version__'

我怎么才能解决这个问题呢?

EN

回答 1

Stack Overflow用户

发布于 2021-08-15 04:14:39

尝试卸载pyinstaller,然后使用pip重新安装

如果它对你不起作用,这可能会:

https://github.com/pyinstaller/pyinstaller/issues/2114

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

https://stackoverflow.com/questions/68788047

复制
相关文章

相似问题

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