masuko-shingo / jetson-nano

自分用jetsonnanoの記録
MIT License
0 stars 0 forks source link

labelImgがインストールできない #8

Closed masuko-shingo closed 2 years ago

masuko-shingo commented 2 years ago

pip3をインストール

$ sudo apt install python3-pip
$ pip3 install labelImg

エラーが出る

Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-5_x0t09k/lxml/
masuko-shingo commented 2 years ago
$ sudo apt update
$ sudo apt autoremove
$ pip3 install --upgrade pip
$ python3 pip install PyQt5

を試す
[参考]:https://qiita.com/seigot/items/1cbd551e5d588e3f63d4

masuko-shingo commented 2 years ago
$ pip3 install labelImg
WARNING: pip is being invoked by an old script wrapper. This will fail in a future version of pip.
Please see https://github.com/pypa/pip/issues/5599 for advice on fixing the underlying issue.
To avoid this problem you can invoke Python with '-m pip' instead of running pip directly.
Defaulting to user installation because normal site-packages is not writeable
Collecting labelImg
  Using cached labelImg-1.8.6.tar.gz (247 kB)
  Preparing metadata (setup.py) ... done
Collecting lxml
  Downloading lxml-4.7.1-cp36-cp36m-manylinux_2_17_x86_64.manylinux2014_x86_64.manylinux_2_24_x86_64.whl (6.4 MB)
     |████████████████████████████████| 6.4 MB 6.9 MB/s            
Requirement already satisfied: pyqt5 in /home/masuko/.local/lib/python3.6/site-packages (from labelImg) (5.15.6)
Requirement already satisfied: PyQt5-sip<13,>=12.8 in /home/masuko/.local/lib/python3.6/site-packages (from pyqt5->labelImg) (12.9.0)
Requirement already satisfied: PyQt5-Qt5>=5.15.2 in /home/masuko/.local/lib/python3.6/site-packages (from pyqt5->labelImg) (5.15.2)
Building wheels for collected packages: labelImg
  Building wheel for labelImg (setup.py) ... done
  Created wheel for labelImg: filename=labelImg-1.8.6-py2.py3-none-any.whl size=265693 sha256=e2cd6e3fdf38d26cdccc424b015c7d649089380e640508920bdf1672aff2d14b
  Stored in directory: /home/masuko/.cache/pip/wheels/35/6f/d6/f96de77faaf1eab00bfe865ebe8806d3f790d609e4d7a15f50
Successfully built labelImg
Installing collected packages: lxml, labelImg
  WARNING: The script labelImg is installed in '/home/masuko/.local/bin' which is not on PATH.
  Consider adding this directory to PATH or, if you prefer to suppress this warning, use --no-warn-script-location.
Successfully installed labelImg-1.8.6 lxml-4.7.1

WARNING: The script labelImg is installed in '/home/masuko/.local/bin' which is not on PATH. パスが通っていないという警告がでたので,
bashrcにパスを追加

$ vim ~/.bashrc
# export PATH=$PATH:/home/masuko/.local/bin

bashrc更新

$ !source
source ~/.bashrc

更新したら

$ labelImg

で起動できた