I once attempted to install a program that was distributed via pypi (pip was the only way I could install software on that server). The shebang in the script file was #!/bin/python. Thats python2 on most Linux distros and so it couldn't run
That's weird, the console_scripts hook for python packages generates a script with the same python in the shebang that pip is executed with to install the said package.