How to install qt4 with home-brew

雨燕双飞 提交于 2020-04-08 17:59:11

问题


I'm trying to install LabelImg, but in order to do so I need to install qt4 first because I'm using python 2. All the guides I find tell me to do

brew install qt qt4

But I just get "Error: No formulae found in taps." I also tried

brew install cartr/qt4/qt

But when I went to build LabelImg I get

make: *** [qt4py2] Error 1

I am on the latest version of OSX and I have tried the alternative methods of installing Qt, it seems like it is installed properly, but I can't use it to make anything


回答1:


This Homebrew tap allows you to install Qt4 (and various packages that depend on it) on macOS Sierra and newer. You can install it like this:

brew tap cartr/qt4
brew tap-pin cartr/qt4
brew install qt@4

Source




回答2:


Try this:

brew install cartr/qt4/pyqt@4



来源:https://stackoverflow.com/questions/50442009/how-to-install-qt4-with-home-brew

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!