问题
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