google-deepmind / dm-haiku

JAX-based neural network library
https://dm-haiku.readthedocs.io
Apache License 2.0
2.91k stars 231 forks source link

TypeError: 'type' object is not subscriptable #774

Closed chenyzh28 closed 7 months ago

chenyzh28 commented 8 months ago

I installed jax and then used the command $ pip install git+https://github.com/deepmind/dm-haiku, but when I tried to import haiku, there was an error, TypeError: 'type' object is not subscriptable. Why is that?

72B10337-803D-4348-BCB4-239726290C1E
Logan-lxw commented 7 months ago

I also meet the problem.Have you resolved it?

Logan-lxw commented 7 months ago

I also meet the problem.Have you resolved it? @chenyzh28

chenyzh28 commented 7 months ago

I also meet the problem.Have you resolved it? @chenyzh28

I upgraded my python version to 3.11 (my original version is 3.8) and the problem was solved.

Logan-lxw commented 7 months ago

I also meet the problem.Have you resolved it? @chenyzh28

I upgraded my python version to 3.11 (my original version is 3.8) and the problem was solved.

Thank you.