4 ms·
I thought we were supposed to be using `#!/usr/bin/env python3` and not `#!/bin/python3`?
by galleywest200 4y ago
I thought we were supposed to be using `#!/usr/bin/env python3` and not `#!/bin/python3`?
- silverwind 4y agoDefintely, `#!/bin/python3` will not work inside venvs, I suppose.
- SAI_Peregrinus 4y agoOr any distro that doesn't put a python3 executable in /bin. Many current distros symlink /bin to /usr/bin, but not all do, and python3 would usually be in /usr/bin. POSIX only requires /usr/bin/env and /bin/sh to exist, every other path you might use in a shebang can be moved around.
- Isognoviastoma 4y agoThere are two commands that do work in shebang: /bin/sh and /usr/bin/env. Everything else will break sooner or later: BSDs, Nix, Linux distros with separate /bin and /usr/bin and so on.
- lucb1e 4y agoCorrect. What OP uses would run on none of the systems I work with as far as I know