ImportError: No module named pynput.keyboard

前端 未结 2 1480
一个人的身影
一个人的身影 2021-01-26 03:42

I have a problem and I can\'t find anything to help.The idea is that I can\'t import pynput. I did the pip install and this is what it shows:

> Traceback (mos         


        
相关标签:
2条回答
  • 2021-01-26 04:39

    Last time I had this issue, it was because I had installed the module using pip for a given version of python (lets say 2.7), but I was running my script using python 3.6. Try to check the versions.

    0 讨论(0)
  • 2021-01-26 04:46

    How are you running the file? When you do python3 nameofyourprogram.py you should use pip3 install pynput

    0 讨论(0)
提交回复
热议问题