I routinely have this problem on my Mac when I'm using pip
to install a Python package. It'll translate the /usr/bin/env
shebang into the actual executable that was derived. Usually, it seems to happen when I express a version: /usr/bin/env python2.7
However, today, it started doing this to my /usr/bin/env python
shebangs.
Starts with:
#!/usr/bin/env python
Translated to, during install:
#!python
..which doesn't work at all:
-bash: /usr/local/bin/xyz: python: bad interpreter: No such file or directory
Does anyone have any suggestions? According to Google, I'm the only one having this problem on the planet.