It appears as though you're trying to use make
to run a Python program, which is typically unnecessary. The make
command is a rule based automation tool often most often used for compiling and linking compiled programs and libraries ( such as C/C++) , not usually for just directly running scripts such as Python ones.
In your case, make
is trying to find a rule in a Makefile
to build the target distance
, but it's not finding any, thus the error. This is likely because you don't have a Makefile
, or it doesn't contain a rule for distance
.
However, since your program is a Python script, you do not typically need to use 'make'. You can directly run your Python script from the terminal using the 'python' or 'python3' command followed by your script's name. Try this command instead:
python3 distance.py
This tells Python to interpret your distance.py
script. If your script is set up correctly, it should then run as expected.