I am unable to execute Python Script directly.
whereas path to Python Environemnt is as follows:
root@UbuntuDockerGuest-1:~# python -c "import os; print(os.environ['_'])"
/usr/bin/python
I am not sure how to add it correctly in the begining of the program?
Thank you.
Just want to test running python script directly
You have an extra blank line at the top of the file. The
#!have to be the first two bytes of the file, no whitespace or newline before them.Also, the path after the
#!has to be/usr/bin/pythonor/usr/bin/env python, not/usr/bin python.