LoginSignup
1

More than 1 year has passed since last update.

OnnxruntimeがpipでM1Macにinstallできない

Posted at

現象

私の環境

ProductName:	macOS
ProductVersion:	12.3.1
BuildVersion:	21E258

Python 3.8.5
pip 22.1.2 

pip install onnxruntimeを実行したところ、以下のエラーメッセージが出てインストールできなかった。

ERROR: Could not find a version that satisfies the requirement onnxruntime
ERROR: No matching distribution found for onnxruntime

原因は調べたところ、どうやら予想通りM1チップに対応するonnxruntimeがなかった模様

解決策

onnxruntimeのソースコードをgithubから取ってきて、M1mac用にコンパイルすれば良い。
誰かが既に作ってくれていた。
onnxruntime-silicon

下記コマンドでOK

pip install onnxruntime-silicon

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
1