What's happening, here?!
$ /usr/bin/env which python /home/dbanas/.local/bin/python $ /home/dbanas/.local/bin/python -V Python 2.7.3 -- EPD_free 7.3-2 (64-bit) $ /usr/bin/env python -V Python 2.4.3 I stumbled upon this, trying to debug one of my Python scripts, which uses a
#! /usr/bin/env python
first line. And I don't understand how it's possible.
Thanks! -db
I did just notice that '~/.local/bin/python' is a link, not an executable. Would that break the '/usr/bin/env ...' flow somehow?
Perhaps, this is a more succinct way to express the fundamental puzzle?:
$ env python -V Python 2.4.3 $ python -V Python 2.7.3 -- EPD_free 7.3-2 (64-bit) It just keeps getting curioser and curioser:
$ which python /home/dbanas/.local/bin/python $ python -c 'import sys; print sys.executable' /usr/bin/python
whichsays it should. You might want to clarify the quesiton. What shell are you using? what doesenv(alone) report for your path?type -a pythonunderbash. Also in case you just installed (or moved) the python executable be sure to run a new shell so it sees it on startup.