Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Hi @abhishek-appana, installing the IDAKLU solver on Windows is tricky and we haven't added instructions to do so, yet – but we plan to do so with #4242 and other follow-ups. A short guide is as follows: #4372

Closed
abhishek-appana opened this issue Aug 23, 2024 · 1 comment

Comments

@abhishek-appana
Copy link

Hi @abhishek-appana, installing the IDAKLU solver on Windows is tricky and we haven't added instructions to do so, yet – but we plan to do so with #4242 and other follow-ups. A short guide is as follows:

  1. Set up a C++ compiler: we use a recent version of MSVC, which you can get using Build Tools for Visual Studio Code 2022. Note that you won't need Visual Studio 2022 entirely, just "Desktop development with C++" should be enough.
  2. Next, you'll need the vcpkg package manager for C++. You may get it here: https://vcpkg.io/en/. vcpkg should set up all of the prerequisite dependencies for you.
  3. You can then do pip install -ve . inside a git clone of the PyBaMM repository. Before that, you'll need to set a bunch of environment variables as follows:
    PYBAMM_USE_VCPKG=ON
    VCPKG_ROOT_DIR=C:\vcpkg
    VCPKG_DEFAULT_TRIPLET=x64-windows-static-md
    VCPKG_FEATURE_FLAGS=manifests,registries
    CMAKE_GENERATOR="Visual Studio 17 2022"
    CMAKE_GENERATOR_PLATFORM=x64

In any case, the easier method, if you have elevated privileges on your machine, is to use WSL2: https://docs.pybamm.org/en/stable/source/user_guide/installation/windows-wsl.html and follow the instructions for GNU/Linux after that.

Originally posted by @agriyakhetarpal in #4296 (reply in thread)

@abhishek-appana
Copy link
Author

Sorry, opened by mistake

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant