I downloaded the pynput in my windows with pip following the video: https://youtu.be/DTnz8wA6wpw
with cmd in administrator mode
pip install pynput
and when i run the code, the pycharm and spyder3 show the error:
Traceback (most recent call last): File "E:/Users/nilson/Dropbox/Python/PyCharm/auto/auto.py", line 1, in from pynput.keyboard import Key, Controller ModuleNotFoundError: No module named 'pynput'
Here is my code:
from pynput.keyboard import Key, Controller
import time
keyboard = Controller()
time.sleep(2)
for char in "sasdasdasda":
keyboard.press(char)
keyboard.release(char)
time.sleep(0.12)
pip3 install pynput
(if you are using python 3)python3
? How aboutpip3 install pynut
?