简体   繁体   English

pynput 即使已安装也不导入

[英]pynput not importing even though it is installed

I am having issues with importing pynput in a keylogger I am writing(i am learning ethical hacking) it comes up with this error: Exception has occurred: ModuleNotFoundError No module named 'pynput' File "C:\Code_Projects\Key_Log\K_Log.py", line 2, in <module> from pynput import keyboard I have tried uninstalling and reinstalling pynput but there still is a error can yoU hep me?我在我正在编写的键盘记录器中导入 pynput 时遇到问题(我正在学习道德黑客)它出现了这个错误: Exception has occurred: ModuleNotFoundError No module named 'pynput' File "C:\Code_Projects\Key_Log\K_Log.py", line 2, in <module> from pynput import keyboard我已经尝试卸载并重新安装 pynput 但仍然有错误,你能帮我吗?

Are you sure you installed it correctly?你确定你安装正确了吗? I had a similar problem.我有一个类似的问题。 In my cmd I executed pip install pynput and this worked for me.在我的 cmd 中,我执行pip install pynput ,这对我有用。 If this doesn't work check your directory if it's imported correctly and in the correct directory.如果这不起作用,请检查您的目录是否已正确导入并位于正确的目录中。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 即使已安装,导入 matplotlib 也会出错 - Importing matplotlib gives error even though installed 即使我安装了 Flask 也没有导入 - Flask is not importing even though I installed it 即使Anaconda说它已安装,导入Numpy也会导致错误? - Importing Numpy results in error even though Anaconda says it's installed? 在 Jupiter 笔记本上导入 openCV 时出现问题,即使它安装在我的机器上 - Problem with importing openCV on Jupiter notebook even though it is installed on my machine 导入 numpy 时出错,即使我安装正确 - Error importing numpy even though I installed it properly ModuleNotFoundError:没有名为“pynput”的模块,即使它已被清楚地下载 - ModuleNotFoundError: No module named 'pynput' even though it is clearly downloaded 为什么在.kv 文件中导入 kivymd 会出现错误。 即使它已经安装 - Why does importing kivymd in .kv file give me error. Even though its already installed 即使安装了模块,导入似乎也不起作用 python 并返回“ModuleNotFoundError” - Importing does not seem to work python and returns "ModuleNotFoundError" even though module is installed “ ModuleNotFoundError: No module named 'azure' ” 导入 azure.datalake.store 后,即使它已安装 - “ ModuleNotFoundError: No module named 'azure' ” after importing azure.datalake.store even though it is installed Pynput-导入键盘和鼠标 - pynput - Importing keyboard and mouse
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM