Can't install mlpy using Python 3.6 on macOS 10.12

40 views
Skip to first unread message

Alessio Marcozzi

unread,
Apr 24, 2018, 8:40:16 AM4/24/18
to mlpy-general

I am trying to install mlpy using Python3 (I need to use its implementation of the Dynamic Time Warping algo.) but I can't get it to work.

The same package can be installed using Python 2.7, on the same machine, without problems, so I don't think that is an OS-related problem.


Any help is very welcome!!


# userx @ yz in ~/Downloads/mlpy-3.5.0 [12:09:06] 
$ python3 setup.py install                                            
running install
running build
running build_py
running build_ext
building 'mlpy.gsl' extension
gcc -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/Users/userx/miniconda3/include -arch x86_64 -I/Users/userx/miniconda3/include -arch x86_64 -I/Users/userx/miniconda3/include/python3.6m -I/Users/userx/miniconda3/lib/python3.6/site-packages/numpy/core/include -I/Users/userx/miniconda3/include/python3.6m -c mlpy/gsl/gsl.c -o build/temp.macosx-10.7-x86_64-3.6/mlpy/gsl/gsl.o
mlpy/gsl/gsl.c:223:10: fatal error: 'gsl/gsl_sf.h' file not found
#include "gsl/gsl_sf.h"
         ^~~~~~~~~~~~~~
1 error generated.
error: command 'gcc' failed with exit status 1
Reply all
Reply to author
Forward
0 new messages