-
Notifications
You must be signed in to change notification settings - Fork 64
Open
Description
Describe the bug
Hello,
I'm trying to install tsfresh==0.19.0 on my macOS 12.1 (arm) but the installation fail when installing matrixprofile, at build step with the folliwing error :
clang: error: unsupported option '-fopenmp'
error: command '/usr/bin/clang' failed with exit code 1
I tried with python 3.8 and 3.9, same error.
To Reproduce
Steps to reproduce the behavior:
- Create a python 3.9 environment on macOS X 12.1 arm
- conda install llvmlite (pip install fails)
- pip install tsfresh
- See error
Expected behavior
tsfresh installation without errors.
Desktop (please complete the following information):
- OS: macOS X 12.1
- X Code Version 13.2.1
- python 3.9 (conda env)
nemanjatio, SrishtiSehgal, kenjimarshall, antonindurieux, garnoli99 and 4 more
Activity
jarhed commentedon Jul 29, 2022
I've fixed this by following the directions here to install gcc and whatnot through brew then forced gcc to compile using:
CC=gcc pip install matrixprofile
Kinda proud of myself, this is way outside my wheelhouse :)
mdhanna commentedon Aug 15, 2022
The solution above (
CC=gcc pip install matrixprofile
) did not work for me.My problem was that I was attempting to install in a Python 3.10 environment and tsfresh only supports up to Python 3.9. I rolled my environment back to Python 3.9 and was able to install without any issues.
traddo commentedon Sep 19, 2022
vi setup.py
add
add
language="c++",
into Extension(...)
arresejo commentedon Nov 17, 2022
The solution I've found was to downgrade the Python version to 3.10.8 using pyenv in order to easily manage multiple Python versions (useful resource: https://opensource.com/article/19/5/python-3-default-mac).