Tag: shebang

54 votes
12 answers
2.8K views
Should I put #! (shebang) in Python scripts, and what form should it take?

Should I put the shebang in my Python scripts? In what form? #!/usr/bin/env python or #!/usr/local/bin/py

avatar
Omar
0 1 0 9
asked 07 September, 2021
52 votes
21 answers
379 views
Why do people write #!/usr/bin/env python on the first line of a Python script?

It seems to me like the files run the same without that line.

avatar
Jesenia
0 1 0 9
asked 07 September, 2021