我正在尝试用pip安装scikits.audiolab。我读了this post,然而,看起来用户的问题是他们没有安装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/我发现的关于这个错误的所有东西都指向我从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].运行pip -V返回pip 9.0.1 from /usr/local/lib/python2.7/site-packages (python 2.7)
运行python --version返回Python 2.7.12
任何能给我指明正确方向的人都是真正的英雄。
发布于 2016-11-25 03:51:28
原来我缺少libsndfile。我偶然发现了Python audiolab install, unable to install (or find) libsndfile on Mac OSX,它提供了奇妙的方向,就像一个护身符。我也有homebrew,所以显然brew install libsndfile也可以工作。在这之后,我就可以用pip install scikits.audiolab安装scikits.audiolab了
发布于 2017-10-26 16:59:36
通过安装libsndfile1-dev包解决了Ubuntu16.04上的问题
sudo apt-get install libsndfile1-dev发布于 2017-08-19 15:15:24
要安装scikits.audiolab,您肯定需要Python2.7
因此,运行以下命令将解决此问题:
sudo python2.7 -m pip install scikits.audiolabhttps://stackoverflow.com/questions/40793348
复制相似问题