Ask a Question
Ask Question Login
Corporate Training
  1. Community
  2. Python
  3. Question
Python

Should I put #! shebang in Python scripts, and what form should it take?

Asked by Chandralekha Debbie Apr 14, 2021 945 views 1 answer
Share

About this question

should I put the shebang in my Python scripts? In what form?

#!/usr/bin/env python

or

#!/usr/local/bin/python

Are these equally portable? Which form is used most?

Your answer

1 Answer

More Python discussions

Learn & Explore

Free tutorials and interview questions from industry experts — learn the skill, then get ready to prove it.

Latest Python Blogs

Guides, tips and career advice on Python from JanBask experts.