[英]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.