Hello,
I have a question regarding a few python scripts I have. I cloned a few GitHub projects I did like to test on my Debian server.
When I execute an example script in the project folder it works but when I move the script to another directory and try to execute it there it says
File "/home/pi/example_script.py", line 1, in <module>
from x import X
ModuleNotFoundError: No module named 'x'
Do I have to link the script to the source code / project folder ? If yes, how do I do so?
I have a question regarding a few python scripts I have. I cloned a few GitHub projects I did like to test on my Debian server.
When I execute an example script in the project folder it works but when I move the script to another directory and try to execute it there it says
File "/home/pi/example_script.py", line 1, in <module>
from x import X
ModuleNotFoundError: No module named 'x'
Do I have to link the script to the source code / project folder ? If yes, how do I do so?