I cannot figure out what is going on here. I have just installed Anaconda, and I am trying to get my #! /usr/bin/env python shebang to return the new interpreter. I have no python aliases, and ~/miniconda3/bin is the first entry in my PATH.
Even so, when I run env python -V I get Python 2.7.8, while if I run python -V I get Python 3.5.1 :: Contiuum Analytics, Inc.. This is very curious, and I cannot find any helpful discussions online.
type -a python gives the reasonable result:
python is /Users/aa/miniconda3/bin/python
python is /Library/Frameworks/Python.framework/Versions/2.7/bin/python
python is /Library/Frameworks/Python.framework/Versions/3.0/bin/python
python is /usr/bin/python
python is /usr/local/bin/python
hash -r python does not seem to help.
Thanks!