I\'m trying to use the keyboard library in python 3 but continue to get an import error. I ran the program in windows in Thonny and It worked fine but I cant run it in the p
Very late response, but I had your same problem. Just found a solution. You have to be root to run this program! The "Gotcha" comes, however, to how you installed the keyboard library...
Make sure when you installed the keyboard library that you did a:
sudo pip3 install keyboard
I did not do a sudo and first time I installed it. So what happened is that:
1) you try to run the program without being root
2) you try to run teh program as root
hope this helped.
$> sudo su
Then enter password for the user and run script file