-
-
Notifications
You must be signed in to change notification settings - Fork 671
Error installing scikits.odes solver in MacOS #3511
-
I tried to install scikits.odes solver in MacOS and it gives me the following error. Can someone guide me? ![]() |
Beta Was this translation helpful? Give feedback.
All reactions
Replies: 1 comment · 3 replies
-
@Akila1993 we'll be able to help better if you could copy-paste the executed command and the complete stack trace. |
Beta Was this translation helpful? Give feedback.
All reactions
-
Thanks @Saransh-cpp here it is. Last login: Fri Nov 10 09:23:13 on ttys000 pip install . Running × Building wheel for scikits.odes (pyproject.toml) did not run successfully.
note: This error originates from a subprocess, and is likely not a problem with pip. |
Beta Was this translation helpful? Give feedback.
All reactions
-
Hello @Akila1993, based on the logs, the relevant error is coming from this line fatal error: 'sundials/sundials_config.h' file not found The recommended way to install brew install sundials
export SUNDIALS_INST="$(brew --prefix sundials)"
pip install scikits.odes or you can use the one-liner which should fix it. Please note that the installation procedure requires C and Fortran compilers to be available on your machine as well (https://scikits-odes.readthedocs.io/en/stable/installation.html). I hope this helps! |
Beta Was this translation helpful? Give feedback.
All reactions
-
@agriyakhetarpal Thank you very much for your advise, it works now. |
Beta Was this translation helpful? Give feedback.
Hello @Akila1993, based on the logs, the relevant error is coming from this line
fatal error: 'sundials/sundials_config.h' file not found
The recommended way to install
scikits.odes
is to ensure that the SUNDIALS header files will be found at a common location at the time of installation. The usual location with Homebrew on Intel-based macOS systems is atusr/local/
, which requires no extra steps. However, if you are on an M-series macOS machine, the Homebrew installation of SUNDIALS is likely different (trybrew --prefix sundials
to find it, it is usually inopt/homebrew/opt/sundials/
). Before running thepip install scikits.odes
command, you need to set that location as an environment v…