I have installed Python and Ruby using Homebrew and RVM respectively and they work fine in terminal, but Vim (both system and MacVim from Homebrew) launches system ones for some reason. :! which python
returns /usr/bin/python
while which python
in console returns /usr/local/bin/python
/usr/bin
and I've found the reason why.