`Error: Failed to determine the layout of your Qt installation` when installing pyqt for python3 on Mavericks

`Error: Failed to determine the layout of your Qt installation` when installing pyqt for python3 on Mavericks

运行brew install pyqt --with-python3,我得到Error: Failed to determine the layout of your Qt installation。在brew脚本中加入--verbose,问题是ld找不到-lgcc_s.10.5.

(这是在 Mac OS X 10.10.5 Yosemite)

回答以帮助遇到此问题的其他人:解决方案是先将 XCode 升级到 XCode 7.2 并打开一次以接受许可证并安装其他组件。然后,一个brew update和一个brew install pyqt --with-python3终于成功了。