crewAI-tools icon indicating copy to clipboard operation
crewAI-tools copied to clipboard

Unable to install onnxruntime on MacOS 15

Open siddas27 opened this issue 1 year ago • 2 comments

I ran uv sync, and it hrows this error on MacOS 15

Resolved 245 packages in 9ms
error: Distribution `onnxruntime==1.19.2 @ registry+https://pypi.org/simple` can't be installed because it doesn't have a source distribution or wheel for the current platform

siddas27 avatar Nov 30 '24 17:11 siddas27

Following up here, it's reported as a bug in uv: https://github.com/astral-sh/uv/issues/9228

If you need, you can get around it by selecting a specific version of Python:

 uv venv --python 3.11.10

This will install Python 3.11.10, and then allow you to proceed to follow instructions.

burningion avatar Jan 01 '25 03:01 burningion

It's a UV bug, but UV seems not to fix it.

I found another way to work around then we can use the latest crewai on macos.

  1. Replace the uv sync or crew install with the following commands.
uv export --format requirements-txt > requirements.txt
uv pip install --requirements requirements.txt
# If any dependencies fail, just run 
# uv pip install packagename==version
# to install. Such as pyarrow==19.0.0.
  1. Replace the crew run with uv run --no-sync run_crew. You may also load .env before running any crew.

kitt1987 avatar Jan 18 '25 16:01 kitt1987