There was a strange issue where the code worked in the global environment on my MacBook but not in a virtual environment. Based on this, I concluded that my Python environment and variables were tangled. So, I decided to reset my MacBook and reinstall everything properly, ensuring that I used only a single, correctly configured Python environment.
Following the installation method described in the official mlx-data
documentation—cloning the repository via git clone
and then binding it with Python—I was able to run everything without any issues.
I hope my experience can help others who might be struggling with similar problems.