I recently updated my Mac's python version to 2.7.10, and I can confirm that this change has occurred:
$ python --version
Python 2.7.10
However, when I make a new virtualenv, the python version is still an old one:
(ENV)$ python --version
Python 2.7.6
Any suggestions for how to create a virtualenv that uses Python 2.7.10?
To be clear, my question is different from this one. There are not distinct binaries called python2.7.6 and python2.7.10 in /usr/bin/; instead, there is a single binary called python2.7. I have already tried the following virtualenv -p sequence to no effect. :(
$ virtualenv -p /usr/bin/python2.7 ENV
$ source ENV/bin/activate
(ENV)$ python --version
Python 2.7.6
Any additional thoughts/suggestions would be much appreciated. Thanks!
/usr/local/bin/python2.7? what doeswhich -a pythonoutput?-p. If you want to know how to find a particular interpreter, that's a different question, which @PadraicCunningham's comment gives you the answer to. Otherwise, without an exhaustive history of the Python versions you've installed and how (and possibly not even then), how can we tell you where that one is?