LoginSignup
1
0

More than 1 year has passed since last update.

slycotをpipでインストールする際のエラー

Last updated at Posted at 2023-03-27

症状

pip install slycotした際にエラーが出て,正常にインストールできない.

環境

  • Ubuntu=20.04
  • Python=3.10.5
  • pip=23.0.1

対処法

slycotgithubによれば,

  • Python 3.8+
  • NumPy
  • scikit-build
  • CMake
  • C compiler (e.g. gcc, MS Visual C++, clang)
  • FORTRAN compiler (e.g. gfortran, ifort, flang)
  • BLAS/LAPACK (e.g. OpenBLAS, ATLAS, MKL)

に依存しているようなので,これらを全部インストールしてからもう一度pip installすることで正常にインストールできました.

実際にやったこと

NumPyとscikit-buildのインストール

$ pip install numpy scikit-build

cmakeのインストール

$ sudo apt install cmake

OpenBLASのインストール

こちらにしたがってインストール.

結果

$ pip install slycot
(省略)
Successfully installed slycot-0.5.3

となりインストールに成功しました.

1
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
1
0