安装mlpy时出现gsl错误

时间:2012-07-15 17:45:33

标签: python easy-install

我试图安装mlpy,我收到以下错误消息。我不知道从哪里开始。有人有任何线索吗?

$ sudo easy_install mlpy-3.5.0.tar.gz
Password:
install_dir /Library/Frameworks/Python.framework/Versions/6.2/lib/python2.6/site-packages/
Processing mlpy-3.5.0.tar.gz
Running mlpy-3.5.0/setup.py -q bdist_egg --dist-dir /tmp/easy_install-lQNT_3/mlpy-3.5.0/egg-dist-tmp-EPgtAi
mlpy/gsl/gsl.c:223:24: error: gsl/gsl_sf.h: No such file or directory
mlpy/gsl/gsl.c:224:39: error: gsl/gsl_statistics_double.h: No such file or directory
error: Setup script exited with error: command 'gcc' failed with exit status 1

1 个答案:

答案 0 :(得分:8)

您的系统上没有安装gsl的开发包。在RHEL / Fedora /等。在Debian / Ubuntu / etc上安装gsl-devel。安装gsl-dev。