Skip to content

Installation: apple M2 #721

Closed
Closed
@ChauhanT

Description

@ChauhanT

Hi,

Thank you very much for sharing your wonderful work with the community.

I am trying to install brainpy on my apple M2 machine (virtual environment python 3.10.13). I can install everything fine, but when I import brainpy, I get this error:

ImportError: cannot import name 'Primitive' from 'jax.core' (/Users/USER/Work/dev/ei_srp/.venv/lib/python3.10/site-packages/jax/core.py)

I thought installing jax-metal would do the trick, but it didn't. My pyproject.toml dependencies read as follows:

requires-python = ">=3.10,<3.11"
dependencies = [
    "brainpy>=2.6.0.post20241205",
    "jax-metal>=0.1.1",
]

Any tips/advice would be awesome as I can't seem to figure it out by forum-browsing and googling.

Cheers!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions