Skip to content
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

Common Installation Problems #200

Open
awni opened this issue Dec 17, 2023 · 7 comments
Open

Common Installation Problems #200

awni opened this issue Dec 17, 2023 · 7 comments

Comments

@awni
Copy link
Member

awni commented Dec 17, 2023

The docs have more information on troubleshooting installation.

Two of the more common issues are described below (as well as in the docs).

Installing from PyPI

A common problem is pip install mlx does not find a matching distribution:

ERROR: Could not find a version that satisfies the requirement mlx (from versions: none)
ERROR: No matching distribution found for mlx

If this happens you are probably using a non-native Python. The output of:

python -c "import platform; print(platform.processor())"

Should be arm not i386. You can fix this by using an environment with a native Python using Conda. Another option is to simply reinstall Conda and setup a new environment.

Installing from Source

You see the following error when you try to build:

error: unable to find utility "metal", not a developer tool or in PATH

To fix this, first make sure you have Xcode installed:

xcode-select --install

Then set the active developer directory:

sudo xcode-select --switch /Applications/Xcode.app/Contents/Developer
@ariaattar
Copy link

Screen Shot 2023-12-21 at 3 50 06 PM

Having the same issue, platform is outputting arm is there something else I should check?

@awni
Copy link
Member Author

awni commented Dec 22, 2023

Check your operating system: requirements here

And try pythom -m pip install mlx

@aakashvardhan
Copy link

Is this not applicable for pyenv?

@awni
Copy link
Member Author

awni commented Jan 21, 2024

I'm not sure what you mean. You should be able to use mlx inside a pyenv.

@oldfishoh
Copy link

I resolved the issue by reinstalling conda, and successfully installed it using pip install chat-with-mlx. However, how should I run it?

@awni
Copy link
Member Author

awni commented Mar 5, 2024

However, how should I run it?

To run chat-with-mlx I would check the docs there. That is a third party repo. If you have issues with it, I would encourage you to file an issue in that repo.

@takeruh
Copy link

takeruh commented Dec 12, 2024

I had the same problem. The cause was that I installed zsh (/usr/local/bin/zsh) on an Intel Mac and then changed to an arm64 Mac, so the Intel zsh was being used only by VScode.
It seems that deleting it with brew uninstall zsh will solve the problem.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants