The system default python is:
$ /usr/bin/python --version
Python 2.7.1
my $PATH
is
export PATH=/opt/local/bin:/opt/local/sbin:/usr/local/sbin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/X11/bin
I installed python 2.7.3
via homebrew
,
$ brew install python --universal --framework
and linked it,
$ cd /System/Library/Frameworks/Python.framework/Versions
$ sudo mv Current _Current
$ sudo ln -s /usr/local/Cellar/python/2.7.3/Frameworks/Python.framework/Versions/Current
but when I make a virtualenv, it's still 2.7.1
$ python --version
Python 2.7.3
$ virtualenv venv
$ cd venv;source bin/activate
(venv) $ python --version
Python 2.7.1
How to solve it?