在 pyinstaller 中找不到模块

时间:2021-02-12 13:10:51

标签: python windows pyinstaller

当我尝试运行 pyinstaller 时,这会显示。 ModuleNotFoundError: 没有名为“_pyinstaller_hooks_contrib”的模块

我正在尝试将带有 gui 的代码转换为 .exe,以便其他人无需任何 IDE 即可使用它。

1 个答案:

答案 0 :(得分:0)

pip install pyinstaller-hooks-contrib

我不知道您的情况,但您可以尝试使用 pip 安装包 pyinstaller-hooks-contrib。