TTS: [Bug] Installation in M1 venv fails
Describe the bug
Installing tts in a python venv on macOS fails to install.
To Reproduce
mkdir ~/Desktop/tts
cd ~/Desktop/tts
python3 -m venv .
source ~/Desktop/tts/bin/activate
pip3 install setuptools wheel TTS --upgrade
Expected behavior
Successful installation.
Logs
note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building wheel for numpy
Failed to build numpy
ERROR: Could not build wheels for numpy, which is required to install pyproject.toml-based projects
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
error: subprocess-exited-with-error
× pip subprocess to install build dependencies did not run successfully.
│ exit code: 1
╰─> See above for output.
note: This error originates from a subprocess, and is likely not a problem with pip.
### Environment
M1 Mac ARMx64, macOS 12.3.1, Python 3.9.12 (brew)
### Additional context
_No response_
About this issue
- Original URL
- State: closed
- Created 2 years ago
- Reactions: 1
- Comments: 27 (3 by maintainers)
This did the trick! Thank you
I’m not sure if this is best solution but this worked for me:
You should see:
If you already have miniforge and it is an older version of python, run:
Setup the main requirements:
Then use it:
At an earlier point I had run this (not sure if it is a requirement):
Sure I’ll try that (Just so you know I hate python)
Works for me too! First
Then
For me it fails due to “mecab-python3”
See:
We officially only support Linux. Thus I close this issue but feel free to keep the conversation here.
Being said that… One of our deps (mecab) used for G2P in Japanese is not M1 compatible. Try manually installing TTS by removing it from the requirements.
for people needing help for mac m2 using py=3.8 virtual env:
does the trick.
I am having the same issue. Any progress?
Can confirm this doesn’t work on M1. I tried cloning the repo and changing the
numpy
dependency inrequirements.txt
to1.20.3
, which seems to be the oldest release that compiles on M1, but that gives an error aboutllvmlite
This seems to be a known issue with M1 and the
llvmlite
andlumba
libraries and there are even some experimental wheels to fix it, but i couldn’t get it to work unfortunately.