I am developing this python program to run in Raspberry Pi (Raspbian). And my program is using Kivy for UI also. What I need to do now is to make my python script executable and auto boot when startup.
I added this line of code into my first line of python file:
#!/usr/bin/env python3
However, I realize that if I using command to run the script, it comes out with error, stating there is no module name Kivy. For your info, the line of code is as below:
from kivy.app import App
But, if I double click on the python script, the program can run without any error and function as it is. Does anyone know what can I do to solve this error and make it autorun during boot up?
Your help is very much appreciate.