Permission Denied when executing python file in linux

前端 未结 3 1091
刺人心
刺人心 2020-12-21 09:52

I am working with my Raspberry Pi 2 B+ and I am using Raspbian. I have a python script located at /home/pi/Desktop/control/gpio.py

When I type /hom

3条回答
  •  情话喂你
    2020-12-21 10:49

    Type these commands in terminal then execute it:

     Sudo chown root.gpio /dev/gpiomem
    
      Sudo chmod g+rw /dev/gpiomem
    

    Or also Try this

     sudo su
    

提交回复
热议问题