I installed the keyboard module for python with pip3 and after I runned my code the terminal shows me this message: "ImportError: You must be root to use this library on linux." Can anybody help me how to run it well? I tried to run it by switching to "su -" and tried it on this place as well.
Can you please post your script?
If you are just starting the program without a shebang it probably should not run and probably throw an ImportError
Try adding a shebang (#!) at the first line of you script.
A shebang is used in unix to select the interpreter you want to run your script.
Write this in the first line: #!/usr/bin/env python3
If this doesn't help try running it from the terminal using a precending dot like this:
python3 ./{file's_name}.py
Cannot import module from linux-ubuntu terminal