Pyinstaller无法导入pynput模块

发布于 2025-01-10 08:36:59 字数 302 浏览 4 评论 0原文

嘿,我尝试编写一个脚本,在其中使用 pynput 来检测按下的按键绑定。它本身工作正常,但遗憾的是,一旦我尝试使用 pyinstaller 将其制作成 exe 文件,一旦我尝试运行它,就会弹出以下错误。 屏幕截图错误

我已尝试查找问题,但尚未找到任何有效的解决方案。 我还阅读了 pyinstaller 的文档,但没有找到任何内容。

Hey ive tried coding a script in which i use pynput to detect keybinds being pressed. It works fine itself but sadly once i try to use pyinstaller to make it into an exe file the following error pops up once i try to run it.
screenshot of the error

I have tried looking up the problem but have not found any working solutions.
I have also read through pyinstaller's documentation but I didn't find anything.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

勿忘初心 2025-01-17 08:36:59

#使用这个pip install pynput==1.6.8

#use this pip install pynput==1.6.8

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文