Failing to install mlpy on macOS 10.12 using Python 3

164 views
Skip to first unread message

Alessio Marcozzi

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

I am trying to install 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 @ xyz 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



Alessio Marcozzi

unread,
Apr 24, 2018, 9:34:14 AM4/24/18
to mlpy-general
Sorry, I have posted this question twice by mistake.

Alessio Marcozzi

unread,
May 1, 2018, 1:03:55 PM5/1/18
to mlpy-general

Solved by running

python3 setup.py build_ext --include-dirs=/usr/local/include/ --rpath=/usr/local/lib/

followed by python3 setup.py install

Reply all
Reply to author
Forward
0 new messages