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

Unable to install CoreML support on Mac #2701

Open
kopaka7 opened this issue Jan 3, 2025 · 0 comments
Open

Unable to install CoreML support on Mac #2701

kopaka7 opened this issue Jan 3, 2025 · 0 comments

Comments

@kopaka7
Copy link

kopaka7 commented Jan 3, 2025

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.

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

1 participant