How to install 'labelme' in Macbook M1
Conda Environment
- Because anaconda is not suitable for M1, we use miniforge3 instead.
- Create new conda environment with 'python=3.9'. (miniforge3 only support python3.9 on M1).
PyQt5
- install homebrew (remeber to add path).
brew install pyqt5
. Homebrew supports pyqt now.- add path:
echo 'export PATH="/opt/homebrew/opt/qt@5/bin:$PATH"' >> ~/.bashrc
andecho 'export PATH="/opt/homebrew/opt/pyqt@5/bin:$PATH"' >> ~/.bashrc
. This path may be not suitbale for you. You should modify your path to/qt5@/bin
and/qypt@5/bin
, and modify your bash profile (~/.zshrc
for most Macbook users). - Duplicate the files in
/opt/homebrew/Cellar/pyqt@5/5.15.4_1/lib/python3.9/site-packages
and paste them to/Users/<username>/miniforge3/envs/<environmentname>/lib/python3.9/site-packages
. source ~/.bashrc
(.zshrc
)
labelme
- labelme can be installed directly via pip (in your conda environemnt)
pip install labelme
- when everything is done,
labelme
to use it.