What Python shebang should I use: #! /usr/bin/env python3
or #! /usr/bin/python3
?
#! /usr/bin/python3
:
- Classical way.
- Distributions without
/usr/bin/
have a symlink - Same Python as you get on shell by
python3
- Distributions prefer it over
/usr/bin/env
for their packages (SuSE, Fedora)
#! /usr/bin/env python3
:
- Claimed to be more portable.
- A lot of people (random ones from the internet) recommend it.
To make my question more precise: What should I use, when I want to write software and publish it on, e.g. GitHub, intending others to use and to package it.