无法为Python错误下载mlpy:' gsl / gsl_sf.h'文件未找到

时间:2016-05-18 00:26:08

标签: python terminal gsl

我正在尝试使用网站上的说明下载mlpy,但是我一直在修补' gsl / gsl_sf.h'的错误。文件未找到。生成以下代码,将不胜感激任何帮助:

$ python setup.py install
running install
running build
running build_py
running build_ext
skipping 'mlpy/gsl/gsl.c' Cython extension (up-to-date)
building 'mlpy.gsl' extension
/usr/bin/clang -fno-strict-aliasing -fno-common -dynamic -arch i386 -arch x86_64 -g -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -I/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/numpy/core/include -I/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c mlpy/gsl/gsl.c -o build/temp.macosx-10.6-intel-2.7/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 '/usr/bin/clang' failed with exit status 1

使用标题行时会产生相同的错误:

$ python setup.py build_ext --include-dirs=/path/to/header --rpath=/path/to/lib
running build_ext
skipping 'mlpy/gsl/gsl.c' Cython extension (up-to-date)
building 'mlpy.gsl' extension
/usr/bin/clang -fno-strict-aliasing -fno-common -dynamic -arch i386 -arch x86_64 -g -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -I/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/numpy/core/include -I/path/to/header -I/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c mlpy/gsl/gsl.c -o build/temp.macosx-10.6-intel-2.7/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 '/usr/bin/clang' failed with exit status 1

**** **** EDIT

似乎Xcode存在问题,更新后Xcode mlpy正确导入

0 个答案:

没有答案