【发布时间】:2018-04-24 10:53:22
【问题描述】:
我正在尝试为 Python3 安装 mlpy(我需要使用它的动态时间扭曲算法实现。)但我无法让它工作。
可以在同一台机器上使用 Python 2.7 安装相同的包,没有问题,所以我不认为这是与操作系统相关的问题。
非常欢迎任何帮助!
# userx @ COG148 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
当然,我的机器上安装了gsl(带有 macOS 10.12 的 iMac)
【问题讨论】: