Install Qt5 with homebrew and link it to the system (potentially destructive operation):
$ brew install qt5
$ brew unlink qt # may fail if no Qt4 was installed previously with homebrew
$ brew link --force qt5
Additionally, it might be worth to activate the appropriate target virtualenv with: