Como vincular a versão python home brew e defini-lo como padrão
Acabei de mudar do MacPorts para o HomeBrew. Depois de instalar todas as versões necessárias do XCode e outros softwares, eu tentei instalar o python usando o homebrew: Eu acho que ele foi instalado com sucesso, mas quando eu façowhich python
ainda me mostra 2.7.3 que eu acho que é a versão enviada com o Mountain Lion.
which python
/usr/local/bin/python
python --version
Python 2.7.3
então eu tentei instalar novamente
brew install python --framework --universal
Warning: python-2.7.5 already installed, it's just not linked
Mas diz python 2.7.5 já instalado e não vinculado, tentei fazerbrew link python
Isso me levou a seguir a mensagem, então não tenho ideia do que devo fazer:
Vinculando /usr/local/Cellar/python/2.7.5 ... Aviso: não foi possível vincular o python. Desvinculando ...
Error: Could not symlink file: /usr/local/Cellar/python/2.7.5/bin/smtpd2.py
Target /usr/local/bin/smtpd2.py already exists. You may need to delete it.
To force the link and overwrite all other conflicting files, do:
brew link --overwrite formula_name
To list all files that would be deleted:
brew link --overwrite --dry-run formula_name