[Installation Tutorial] Install LabelImg data labeling tool in Ubuntu+Python3 environment

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

insert image description here
insert image description here
Then run the above command and wait for the installation to succeed

sudo apt-get install pyQt-dev-tools

insert image description here
Then install lxml, the file is relatively small, and the one-time installation is successful. The installation command is as follows:

pip install lxml

insert image description here

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

insert image description here
Finally, enter the following command to run labelImg:

python labelImg.py

insert image description here

Guess you like

Origin blog.csdn.net/qq_30091945/article/details/103560606