-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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
Trying to import jax raises ImportError #7796
Comments
Hi - thanks for the report! I'm a bit confused about what's going on, because you mention that you're using JAX 0.2.19, and you mention adding I would do two things: first, check the output of this:
calling If that also shows jax v 0.2.19, then I assume your installation has been corrupted somehow. I'd then run
(or the equivalent GPU installation command if relevant) |
hello, I tried uninstalling and installing different versions, but it doesn't seem to work |
Hi, Thank you for your reply. Regards |
Thanks! I'll close the issue then. Feel free to open another if you run into any other problems! |
I received the same error from jax 0.2.21:
|
I think the problem is with |
|
I received a similar error from jax 0.4.11, could u help me: File C:\ProgramData\anaconda3\Lib\site-packages\flax\linen\linear.py:30 ImportError: cannot import name 'ShapedArray' from 'jax' (C:\ProgramData\anaconda3\Lib\site-packages\jax_init_.py) |
I would suggest updating flax to a more recent version that is compatible with recent JAX versions. |
Thanks a lot!!! |
ImportError: cannot import name 'abstract_arrays' from 'jax' (/home/xuj/anaconda3/envs/removal/lib/python3.10/site-packages/jax/init.py) |
To fis the error you're seeing, you can avoid attempting to import |
Trying to import
Jax
raisesImportError
:This gives me the error:
Python and jax version:
My system info:
Linux Manjaro (Arch Linux) with the latest kernel.
Adding
Partial
to the list in/home/user/.local/lib/python3.9/site-packages/jax/tree_util.py
line 40 solved the issue for me and I am able to successfullyimport jax
.I also noticed that
partial
is available in the list but replacingpartial
withPartial
seems to raise more errors for me.The text was updated successfully, but these errors were encountered: