I'm trying to use the keyboard
library within Thonny on my Raspberrypi Zero W. However I receive an error saying "import error: you must be root to use this library on Linux."
Can Thonny run scripts as root to avoid this error?
I'm trying to use the keyboard
library within Thonny on my Raspberrypi Zero W. However I receive an error saying "import error: you must be root to use this library on Linux."
Can Thonny run scripts as root to avoid this error?
sudo /usr/bin/thonny %F
If you run Thonny as root you can.
So open a terminal and enter sudo Thonny
Open a terminal and use sudo python program.py
to start the program.