Installing IDAKLU solver on mac #4258
-
hi all, sorry for this basic question. I am trying to do degradation modeling and facing convergence issues. One of the suggestions i found in the discussion forum is about using IDAKLU solver. can you please guide me how to install IDAKLU from beginners point of view( i did pip install klu, but that didnt help to overcome the error "ImportError: KLU is not installed"). i did see quite a few threads here but found to be specific. saw this link also, https://docs.pybamm.org/en/v0.2.3/install/install-klu.html any help will be really appreciated. thanks. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 9 replies
-
Hi @Thiyaga2025, I can see two things:
If you are trying to build from source and want to compile the IDAKLU solver yourself, we provide a comprehensive guide with instructions to follow along for your platform at https://docs.pybamm.org/en/stable/source/user_guide/installation/install-from-source.html. Please feel free to raise an issue or let us know if you find anything that is confusing or broken. |
Beta Was this translation helpful? Give feedback.
Thanks, @Thiyaga2025! Could you please let us know your hardware specifications? Are you running an Intel macOS machine or a newer M-series one? If it is the case that you are on the latter, we did not yet have wheels for that architecture in version 24.1, which might explain your problem. You will have to build from source to use the IDAKLU solver. The wheels contain the necessary libraries for the IDAKLU solver, so not having wheels means that we don't officially support the platform, even though you could still use PyBaMM without the IDAKLU solver.
For the time being, you may try out PyBaMM's latest release candidates (version 24.5rc2) with the command
pip install --pre pybamm
and see …