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?

Raspberry Pi 5 で Orange Data Mining を動かそうとしてしてつまづいた話

Posted at

ノーコードで機械学習がしたい!

ノーコードで機械学習を試したいと思い、我が家のメインマシンである Raspberry Pi 5 で Orange Data Mining を動かそうとしました。

しかし、インストールの過程でつまずいた点があったので、備忘録として記録しておきます。

インストール手順(公式サイトに従った方法)

公式サイトの Download ページ に記載されている手順に従い、以下の方法でインストールを試みました。

  1. 仮想環境を作成
  2. 仮想環境をアクティベート
  3. 必要なライブラリ PyQt5PyQtWebEngine をインストール
    pip install PyQt5 PyQtWebEngine
    
  4. Orange をインストール
    pip install orange3
    

しかし、この手順のうち PyQt5 のインストール でつまづきました。

発生した問題

以下のように、pip install PyQt5 PyQtWebEngine の実行中に強制終了してしまいました。

$ pip install PyQt5 PyQtWebEngine
Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple
Collecting PyQt5
  Using cached PyQt5-5.15.11.tar.gz (3.2 MB)
  Installing build dependencies ... done
  Getting requirements to build wheel ... done
  Preparing metadata (pyproject.toml) ... -強制終了

うまくいった方法

試行錯誤の末、以下の方法でインストールに成功しました。

  1. apt を使ってシステムに PyQt5 をインストール
  2. 仮想環境を作成(システムのグローバルな site-packages にアクセスできるようにする)
    python -m venv --system-site-packages env
    
  3. 仮想環境をアクティベート
  4. Orange をインストール
    source env/bin/activate
    pip install orange3
    

参考にしたサイト

まとめ

Raspberry Pi 5 では pip install PyQt5 によるインストールがうまくいかない場合があるようです。その場合は、apt を使って PyQt5 をシステムにインストールし、--system-site-packages オプション付きの仮想環境を利用することで回避できる可能性があります。

同じ問題に遭遇した方の参考になれば幸いです!

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?