6

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

Andy
  • 105
  • 2
  • 7

2 Answers2

14

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

itsdarrylnorris
  • 630
  • 5
  • 21
  • I ran make qt4py2 and it still gave me the same thing after doing all of the above steps – Andy May 22 '18 at 00:57
  • +1. FWIW, on High Sierra, for the second command I got `Error: Unknown command: tap-pin`, but the first and third commands appeared to be successful. – Greenonline Jul 24 '21 at 16:20
5

Try this:

brew install cartr/qt4/pyqt@4

Ram Ghadiyaram
  • 28,239
  • 13
  • 95
  • 121
Nina Cai
  • 61
  • 1
  • 3
  • On OSX, you might also need to run `brew install openssl@1.0` see https://github.com/cartr/homebrew-qt4/issues/67 – Max Reeder May 12 '20 at 04:11