Instalace LabelImg

13.11.2022 Machine Learning #ML #python #labelimg

Postup instalace LabelImg na Mac Os M1


  1. Stáhnout LabelImg z GitHubu.

    git clone https://github.com/tzutalin/labelImg.git
    cd labelImg


  2. Postupovat při instalace následovně

    # check where python3 is
    $ where python3
    
    # create env
    $ /usr/bin/python3 -m venv env
    
    # check env is
    $ where env
    
    # activate env list
    $ source env/bin/activate 
    
    # updated to the newest
    $ pip install --upgrade pip
    
    # installation of PyQt5
    $ pip install PyQt5
    
    # start to run labelImg.py
    $ cd labelImg
    $ pip3 install pyqt5 lxml
    $ make qt5py3
    
    # [run ok!!]
    $ python3 labelImg.py 

Nejde nainstalovat p5es pip3 knihovna pyqt5? Zkuste nejdříve nainstalovat:

brew install qt5
brew link qt5 --force