mlx icon indicating copy to clipboard operation
mlx copied to clipboard

Common Installation Problems

Open awni opened this issue 1 year ago • 6 comments

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

awni avatar Dec 17 '23 21:12 awni

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?

ariaattar avatar Dec 21 '23 23:12 ariaattar

Check your operating system: requirements here

And try pythom -m pip install mlx

awni avatar Dec 22 '23 04:12 awni

Is this not applicable for pyenv?

aakashvardhan avatar Jan 21 '24 09:01 aakashvardhan

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

awni avatar Jan 21 '24 14:01 awni

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

oldfishoh avatar Mar 05 '24 14:03 oldfishoh

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.

awni avatar Mar 05 '24 14:03 awni