In many python scripts do I read the shebang directive #!/usr/bin/env python I understand it tells which interpreter to use, like in a bash script: #!/bin/bash , but I fail to understand how the python interpreter is specified. If I simply run
$ /usr/bin/env I get a list of variable path such as SHELL=/bin/bash or JAVA_HOME==/Library/Java/JavaVirtualMachines/jdk1.7.0_51.jdk/Contents/Home.
The thing is there is no information about python when running this command. So I would like to better understand what does /usr/bin/env do exactly, and in which way #!/usr/bin/env python tells where my current python interpreter is.
man /usr/bin/env? There is no entry./usr/bin/envisn't a man page.man 1 env