when you try to run the program, you face with error message "No module named 'RPi'"
Solution:
Install missing libraries following the next steps:
sudo apt-get install python-pipsudo apt-get install python3-rpi.gpio (on Python 3)sudo pip freeze | grep RPisudo apt-get install picap
Source:
https://raspberrypi.stackexchange.com/questions/60774/importerror-no-module-named-rpi