I've downloaded the most recent tar from https://www.python.org/ftp/python/2.7.10/Python-2.7.10.tar.xz, untar'd, configured, built and installed to a user directory. I've also used those executables to configure a virtualenv environment.
However, running any of the new executables from their full path still only displays 2.7.6!
Here's a list of all python executables on the system and their versions:
sudo find / -type f -executable -iname 'python*' -exec file -i '{}' \; | awk -F: '/x-executable; charset=binary/ {print $1}' | xargs readlink -f | sort -u | xargs -I % sh -c 'echo -n "%: "; % -V'
yields:
/home/***/python2.7.10/bin/python2.7: Python 2.7.6
/home/***/Python-2.7.10/python: Python 2.7.6
/home/***/theano_env/bin/python: Python 2.7.6
/usr/bin/python2.7: Python 2.7.6
/usr/bin/python3.4: Python 3.4.0
/usr/bin/python3.4m: Python 3.4.0
I've done this twice now (once with 2.7.9) trying to solve a bug in flask that requires hmac on python > 2.7.7 but the correct versions don't seem to be installed. Is there some magic I'm missing here?