Skip to content
Discussion options

You must be logged in to vote

Supported jax and jaxlib versions:

PyBaMM/pybamm/util.py

Lines 24 to 26 in 4f03df4

# versions of jax and jaxlib compatible with PyBaMM
JAX_VERSION = "0.2.12"
JAXLIB_VERSION = "0.1.70"

I think you are executing pybamm_install_jax in a python file? pybamm_install_jax should be executed in your terminal.

Also, I see that the docstring is a bit misleading. The docstring uses >>>, misleading users into executing it in the python interpreter (a PR fixing it would be very welcome!) -

PyBaMM/pybamm/util.py

Lines 330 to 341 in 4f03df4

def install_jax(arguments=None): # pragma: no cover
"""
Install compatible versions of jax, jaxlib.
Co…

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@Saransh-cpp
Comment options

@cyasing
Comment options

Answer selected by valentinsulzer
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants