whisper.cpp icon indicating copy to clipboard operation
whisper.cpp copied to clipboard

Unable to install CoreML support on Mac

Open kopaka7 opened this issue 10 months ago • 3 comments

I am running into a host of errors trying to set up the CoreML support on Mac using the instructions in the readme. I am using an M1 Pro machine running macOS Sequoia 15.2. First pytorch didn't work even though I installed it with homebrew. Then I tried setting up a venv. But even then, I can't install the dependencies.

pip install ane_transformers pip install openai-whisper pip install coremltools

When I try to install ane_transformers, I get this message: `ERROR: Cannot install ane-transformers==0.1.0, ane-transformers==0.1.1, ane-transformers==0.1.2 and ane-transformers==0.1.3 because these package versions have conflicting dependencies.

The conflict is caused by: ane-transformers 0.1.3 depends on torch<=1.11.0 and >=1.10.0 ane-transformers 0.1.2 depends on torch<=1.11.0 and >=1.10.0 ane-transformers 0.1.1 depends on torch>=1.10.0 ane-transformers 0.1.0 depends on torch>=1.11.0

To fix this you could try to:

  1. loosen the range of package versions you've specified
  2. remove package versions to allow pip to attempt to solve the dependency conflict

ERROR: ResolutionImpossible: for help visit https://pip.pypa.io/en/latest/topics/dependency-resolution/#dealing-with-dependency-conflicts When I try to install openai-whisper, I get this error message: Collecting openai-whisper Using cached openai-whisper-20240930.tar.gz (800 kB) Installing build dependencies ... done Getting requirements to build wheel ... error error: subprocess-exited-with-error

× Getting requirements to build wheel did not run successfully. │ exit code: 1 ╰─> [25 lines of output] :5: DeprecationWarning: pkg_resources is deprecated as an API. See https://setuptools.pypa.io/en/latest/pkg_resources.html Traceback (most recent call last): ` The only command that did work was pip install coremltools.

kopaka7 avatar Jan 03 '25 22:01 kopaka7