-
I have installed jax and jaxlib using pip according to https://github.com/google/jax#installation:
But after i ran my project, it showed Importerror:
Could this problem comes from uncompatible jax/jaxlib version for running the project? Many thanks. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
It sounds to me like something isn't working with your |
Beta Was this translation helpful? Give feedback.
-
I noticed I answered the same question here: https://stackoverflow.com/questions/70331558/how-to-deal-with-importerror-cannot-import-name-pytree-from-jaxlib-of-using/70336158?noredirect=1#comment124335932_70336158 From your comments there, it sounds like you want to install a very old version of jax (0.1.68), and you're finding that a much newer version of jaxlib (0.1.67) is incompatible. This is to be expected. If you need to use jax 0.1.68, you'll probably need jaxlib somewhere around 0.1.50, which you can install this way:
Note that the jax-releases address is necessary because this jaxlib version is no longer on PyPI due to its storage constraints. If you need a GPU-compatible jaxlib, you may be able to use jaxlib-0.1.52, which is the first version for which we published GPU wheels (I haven't checked its compatibility with jax 0.1.68). That said, you may have system compatibility issues with those wheels because they were only built for CUDA 10.0 and 10.1 (Again, the versions you're asking about are very old). Overall, I would recommend using newer jax/jaxlib versions if possible. |
Beta Was this translation helpful? Give feedback.
I noticed I answered the same question here: https://stackoverflow.com/questions/70331558/how-to-deal-with-importerror-cannot-import-name-pytree-from-jaxlib-of-using/70336158?noredirect=1#comment124335932_70336158
From your comments there, it sounds like you want to install a very old version of jax (0.1.68), and you're finding that a much newer version of jaxlib (0.1.67) is incompatible. This is to be expected.
If you need to use jax 0.1.68, you'll probably need jaxlib somewhere around 0.1.50, which you can install this way:
Note that the jax-releases address is necessary because th…