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

Installation fails because of deprecated jaxlib version #3

Open
haukekoehn opened this issue Feb 16, 2024 · 1 comment
Open

Installation fails because of deprecated jaxlib version #3

haukekoehn opened this issue Feb 16, 2024 · 1 comment

Comments

@haukekoehn
Copy link

Since the installation of gwfast apparently requires jax[cpu]<0.4.0, but jaxlib<0.4.0 is deprecated from PyPi (see the discussion here google/jax#18368), the naive installation will fail.

A possible solution is to manually download the .whl files for version 0.3.25 or lower from https://storage.googleapis.com/jax-releases/jax_releases.html.

@nsteinle
Copy link

nsteinle commented Mar 19, 2024

@haukekoehn thanks for the hint! I got it working (on Ubuntu 22.04) via:
pip3 install jax-0.3.25.tar.gz
pip3 install -U --no-deps git+https://github.com/CosmoStatGW/gwfast
...
Successfully installed gwfast-1.1.1

From running a gwfast example, I got the error:
RuntimeError: jaxlib version 0.4.25 is newer than and incompatible with jax version 0.3.25. Please update your jax and/or jaxlib packages.

So I updated the jax package:
pip3 install jax[cpu]==0.4.25

And then finally had to manually change deprecations, e.g.
google/jax#17244

Now it works!

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

2 participants