🍣
M1 MacでLabelmeを使う
PyQt5を使おうとするとエラーになる
調べたところGUI表示に使用するQtのバージョンの問題らしい
Collecting PyQt5
Using cached PyQt5-5.15.7.tar.gz (3.2 MB)
Installing build dependencies ... done
Getting requirements to build wheel ... done
Preparing metadata (pyproject.toml) ... error
error: subprocess-exited-with-error
× Preparing metadata (pyproject.toml) did not run successfully.
│ exit code: 1
╰─> [24 lines of output]
Querying qmake about your Qt installation...
解決方法:Qt6を使う
brewでpyqt@5をインストールする。
brew install pyqt@5
pipでPyQt5-sipをインストールする。PyQt6-sipじゃだめだった。
pip install PyQt5-sip
pipでPyQt6をインストールする。
pip install PyQt6
最後にpipでlabelmeをインストールする。
pip install labelme
以上。
Discussion