Quantcast
Viewing latest article 15
Browse Latest Browse All 17

Answer by ik_zelf for Should I put #! (shebang) in Python scripts, and what form should it take?

If you use virtual environments like with pyenv it is better to write #!/usr/bin/env pythonThe pyenv setting will control which version of python and from which file location is started to run your script.

If your code is known to be version specific, it will help others to find why your script does not behave in their environment if you specify the expected version in the shebang.


Viewing latest article 15
Browse Latest Browse All 17

Trending Articles