我也安装了键盘模块和Pyautogui模块,但是当我尝试通过root运行Pyautogui时,我得到了这个错误(sudo python3)。raise ImportError('You must be root to use this library on linux.')ImportError: You must be root to use this library on linux.
我在键盘模块中使用.is_pressed()函数。
在下面的命令行中输入"hello world“== program
/usr/lib64/gcc/x86_64-suse-linux/7/../../../../x86_64-suse-linux/bin/ld: main.o: in function `MAIN__':
main.for:(.text+0x2a): undefined refe