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

Error: Could not find a version that satisfies the requirement mlx>=0 #10

Open
bnqtoan opened this issue Feb 28, 2024 · 13 comments
Open
Labels
bug Something isn't working question Further information is requested

Comments

@bnqtoan
Copy link

bnqtoan commented Feb 28, 2024

I followed the installation instructions provided in the document, but encountered an error.

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

conda 24.1.2
pip 23.3.1 (python 3.11)
Apple M1 Max

@qnguyen3
Copy link
Owner

i just updated the installation instruction, you can try again now!

@ccwanggl
Copy link

ccwanggl commented Feb 28, 2024

windows 11
same issue
I use pip install chat-with-mlx command.

@vovw
Copy link

vovw commented Feb 29, 2024

windows 11

mlx is a mac silicon only framework so i dont think this would work on windows 11

@brucevoin
Copy link

I got the same Error:
Python version: Python 3.11.0
OS: MacOS

ERROR: Ignored the following versions that require a different python version: 1.21.2 Requires-Python >=3.7,<3.11; 1.21.3 Requires-Python >=3.7,<3.11; 1.21.4 Requires-Python >=3.7,<3.11; 1.21.5 Requires-Python >=3.7,<3.11; 1.21.6 Requires-Python >=3.7,<3.11
ERROR: Could not find a version that satisfies the requirement mlx>=0.1 (from mlx-lm) (from versions: none)
ERROR: No matching distribution found for mlx>=0.1

@brucevoin
Copy link

I have tried python 3.8.9 python 3.12.2 python 3.8.9 but all failed.

@qnguyen3
Copy link
Owner

qnguyen3 commented Mar 3, 2024

I think you have an incompatible MacOS version or machine.
Note that this issue only for MacOS >= 13.3 and the Mac needs to run Apple Silicon (M1/M2/M3) chip. Can you confirm that on your end?

@teojs
Copy link

teojs commented Mar 5, 2024

I got the same Error:
Apple M2
macOS 14.3

ERROR: Ignored the following versions that require a different python version: 1.21.2 Requires-Python >=3.7,<3.11; 1.21.3 Requires-Python >=3.7,<3.11; 1.21.4 Requires-Python >=3.7,<3.11; 1.21.5 Requires-Python >=3.7,<3.11; 1.21.6 Requires-Python >=3.7,<3.11
ERROR: Could not find a version that satisfies the requirement mlx>=0.1 (from mlx-lm) (from versions: none)
ERROR: No matching distribution found for mlx>=0.1

@MrFrankChen
Copy link

Device: MBP 2023, Apple M2 Pro, MacOS 14.3.1 (23D60)
Python: 3.11.5
I got a similar error:
ERROR: Could not find a version that satisfies the requirement mlx>=0.1 (from mlx-lm) (from versions: none)
ERROR: No matching distribution found for mlx>=0.1

@qnguyen3
Copy link
Owner

qnguyen3 commented Mar 5, 2024

Hi @teojs & @MrFrankChen are you guys installing with normal pip? can you try to install with conda or pip install chat-with-mlx?

@MrFrankChen
Copy link

Hi @teojs & @MrFrankChen are you guys installing with normal pip? can you try to install with conda or pip install chat-with-mlx?

Thank you! I found a solution here "ml-explore/mlx#200", created an environment with a native Python, and then it works.

@illrestart
Copy link

I got same question
Device: MBP 2023
System: Sonoma 14.0
Python: conda 23.1.0 Python 3.11.8

Finnaly i solve the problem.
Reason: mlx
Solve: stack overflow solution
Simple solution command: CONDA_SUBDIR=osx-arm64 conda create -n native-mlx-chat python=3.11 -c conda-forge

use the command create a new conda env. and finnaly it works for me.

@onuralpszr
Copy link
Contributor

@illrestart let me also test with conda and write proper document for people who want to use conda but simple and fast way of install atm is using plain simple "venv + pip"

@onuralpszr onuralpszr added bug Something isn't working question Further information is requested labels Mar 9, 2024
@YouhuaLi
Copy link

I had the same issue and I think it happens only to conda user. I fixed the issue by specify the platform to be "osx-arm64" when create the env:
CONDA_SUBDIR=osx-arm64 conda create -n mlx-chat python=3.11
conda activate mlx-chat
conda config --env --set subdir osx-arm64

then python -m pip insall -e . should be ok.

Reference: https://stackoverflow.com/questions/65415996/how-to-specify-the-architecture-or-platform-for-a-new-conda-environment-apple

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working question Further information is requested
Projects
None yet
Development

No branches or pull requests

10 participants