-
Notifications
You must be signed in to change notification settings - Fork 329
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 tslearn on MacOS due to Numpy headers #196
Comments
Looking at this issue from hmmlearn, could you try the solution that they proposed? export CFLAGS="-I /usr/local/lib/python3.7/site-packages/numpy/core/include $CFLAGS" |
@dfontenot : could you try @johannfaouzi 's trick and tell us if it works? If so, I could implement the solution suggested there as a fix. |
@rtavenar I believe that worked. At the end of
A subsequent |
i also have similar one:
none of the proposed methods worked for me. i tried to include these paths both to my environment as well as global path. couldn't install!!!! neither globally nor in local env. |
Hi @mustafadgr Could you provide the same information @dfontenot did in his original post (os, python version, full error trace) so that we can try to figure out what is happening ? |
macos version: 10.15.4
ps: this is virtual env, but as i said same error pops up in global environment |
Another related issue from another Python package: andersbll/cudarray#25 Could you try the proposed solutions there please? You may also have less trouble installing |
i don't use conda. i already saw this thread and tried them. |
According to this issue on Cython project, Looking at the documentation of Cython, and more specifically to the cythonize function, you can use the Another proposed solution in the issue is to give an from setuptools import setup, Extension
from Cython.Build import cythonize
setup(
...,
ext_modules=cythonize(Extension("tslearn", sources=["tslearn/*.pyx"], include_dirs=[numpyp.get_include()])),
...
) So you would have to change line 1 to import I hope that it helps you a bit. |
it worked great!!! thanks |
Describe the bug
pip3 install tslearn
fails with the following error:To Reproduce
Python version: 3.7.6, pip version 19.3.1. I have installed cython as well as numpy via pip.
Expected behavior
tslearn to install
Environment (please complete the following information):
Additional context
The text was updated successfully, but these errors were encountered: