📅  最后修改于: 2022-03-11 14:50:38.708000             🧑  作者: Mango
The RPi.GPIO Python module is bundled with Raspbian.
Currently RPi.GPIO has to be run with root priviliges because it accesses /dev/mem. You need root priviliges to access /dev/mem.
So you have to run RPi.GPIO with sudo or similar.