【发布时间】:2014-06-21 08:35:33
【问题描述】:
以下是我得到的错误。请帮我修复它。
apple:mlpy-3.5.0 apple$ python setup.py install
running install
running build
running build_py
running build_ext
building 'mlpy.gsl' extension
cc -DNDEBUG -g -fwrapv -Os -Wall -Wstrict-prototypes -Qunused-arguments -Qunused-arguments -arch x86_64 -arch i386 -pipe -I/System/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -I/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/numpy/core/include -I/System/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c mlpy/gsl/gsl.c -o build/temp.macosx-10.9-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.
【问题讨论】:
-
您必须将路径
.../gsl添加到您的INCLUDE环境变量中,或者只需将-I.../gsl传递给编译器 -
@SaulloCastro 可以请您作为答案发帖还是我应该发帖?
-
什么对你有用?
标签: python-2.7 numpy ml