安装Scikits.audiolab时出错

Iva*_*ber 2 python macos pip scikits

我正在尝试用pip安装scikits.audiolab.我读过这篇文章,然而,看起来用户的问题是他们没有安装numpy.我可以通过卸载numpy并运行来复制它们的跟踪pip install scikits.audiolab.我有numpy时得到的痕迹是:

numpy.distutils.system_info.NotFoundError: sndfile (http://www.mega-nerd.com/libsndfile/) library not found.
Directories to search for the libraries can be specified in the
site.cfg file, in section [sndfile].

----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in /private/var/folders/p8/tbdq1bmx54d68dftpx9_p6qr0000gn/T/pip-build-vuIg71/scikits.audiolab/
Run Code Online (Sandbox Code Playgroud)

我发现有关此错误的所有内容都指向我从pypi下载scikits.audiolab并运行python setup.py install,这显然是"静态链接到libsndfile".但是当我按照这些说明操作时,我得到了几乎相同的错误:

numpy.distutils.system_info.NotFoundError: sndfile (http://www.mega-nerd.com/libsndfile/) library not found.
Directories to search for the libraries can be specified in the
site.cfg file, in section [sndfile].
Run Code Online (Sandbox Code Playgroud)

运行pip -V回报pip 9.0.1 from /usr/local/lib/python2.7/site-packages (python 2.7)

运行python --version回报Python 2.7.12

任何可以指出我正确方向的人都是真正的英雄.

Iva*_*ber 6

事实证明我缺少libsndfile.我偶然发现了Python audiolab安装,无法在Mac OSX上安装(或找到)libsndfile,它提供了极好的方向,就像一个魅力.我也有自制软件,所以显然brew install libsndfile也会有用.在此之后,我能够安装scikits.audiolabpip install scikits.audiolab


Use*_*erK 5

libsndfile1-dev通过安装软件包解决了 Ubuntu 16.04 上的问题

sudo apt-get install libsndfile1-dev
Run Code Online (Sandbox Code Playgroud)