LoginSignup
0
0

More than 1 year has passed since last update.

Apple SiliconでCVXPYをインストール

Posted at

最適化問題を解いてくれるCVXPYのApple Siliconでのインストール手順を示します。

エラー

pip install cvxpy

とすると、以下のエラーがでました。(M2 MacBook Air)

error: subprocess-exited-with-error
  
  × pip subprocess to install build dependencies did not run successfully.
  │ exit code: 1
  ╰─> [107 lines of output]

解決方法

pip install cmake
pip install osqp==0.6.1
pip install ecos
pip install scs

osqpの最新バージョンがおそらく原因だと思います。
https://stackoverflow.com/questions/65920955/failed-building-wheel-for-qdldl-when-installing-cvxpy

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