0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 1 year has passed since last update.

「labelImg」のインストールで、pyrcc5のコマンドが入力できず、先に進めない件について

Posted at

問題

Anacondaを用いた仮想環境で、
LabelImgを公式リポジトリの説明に則ってインストールしようとしたところ、pyrcc5のパスが通っておらず、先に進めない。

具体的には以下のようなエラーが発生する。

$ pyrcc5 -o libs/resources.py resources.qrc

'pyrcc5' は、内部コマンドまたは外部コマンド、
操作可能なプログラムまたはバッチ ファイルとして認識されていません。

原因

conda installを用いてインストールすると、正しくインストールされないことに起因する。
ターミナル上では正しくインストールされたように見えても、実際は正しくインストールされていないようだ。

解決方法

condaによるインストールではなく、pipを用いたインストールに切り替える。
具体的には、以下のようなコマンドを入力する。

$ pip install PyQt5

これで、再度$ pyrcc5 -o libs/resources.py resources.qrcを入力すると、エラーが発生しなくなる。

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?