I am having issues installing one python 2 module (pynput).
In fact I typed the command:
sudo pip install pynput
It works when I try the following snippet:
but when I type:
from pynput.keyboard import Key, Controller
The console returns:
Traceback (most recent call last): File "pynput.py", line 1, in <module> import pynput File "/home/IoTree/server/pynput.py", line 2, in <module> from pynput.keyboard import Key, Controller ImportError: No module named keyboard
Could you please indicate me what's wrong and how to install this module proprely ?
EDIT: I tried with a different .py name (pt.py) and it still doesn't execute without error ..