overview
In a previous article, we introduced the tutorial of installing the LabelImg data labeling tool in the Win10+Python3 environment. If readers need to use the LabelImg data labeling tool in the WIn10 environment, please move to: Install LabelImg data labeling in the Win10+Python3 environment tool . Next, let's introduce the installation process of LabelImg under Ubuntu.
installation process
Since Ubuntu comes with a Python3 environment, use pip to install the labelImg data labeling tool directly. First install qt5, enter the following command:
sudo apt-get install pyQt-dev-tools
However, there may be a process lock, so you need to enter the following command to solve the problem:
sudo rm /var/cache/apt/archives/lock
sudo rm /var/lib/dpkg/lock
sudo dpkg --configure -a
sudo apt-get update
Then run the above command and wait for the installation to succeed
sudo apt-get install pyQt-dev-tools
Then install lxml, the file is relatively small, and the one-time installation is successful. The installation command is as follows:
pip install lxml
Next, go to github to download the source code, the link is: https://github.com/tzutalin/labelImg. After the download is successful, unzip and rename it to labelImg. Then enter the labelImg folder directory. In ubuntu, I put it in the home root directory, so after reopening a terminal, enter the following command once:
cd labelImg
make qt5py3
Finally, enter the following command to run labelImg:
python labelImg.py