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
/home/pi/Desktop/control/gpio.py
When I type /hom
/hom
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