尝试在Mac上安装scikits.audiolab-0.11.0时,bit需要libsndfile:http://www.mega-nerd.com/libsndfile/。我确实安装了libsndfile,使用libsndfile_python-1.0.0-py2.7-macosx10.5.mpkg,但是audiolab安装程序给出了一个错误:找不到libsndfile库。下面是audiolab安装程序的错误。这表明libsndfile的位置可以在site.cfg中指定。
我对这类安装的经验不足,妨碍了我理解这一点。有人能就如何完成这项工作提供一些建议吗?,或者回答下面的问题?
顺便说一下,我签入了/usr/lib dir,但是没有libsndfile。默认情况下,我认为audiolab安装程序将在其中查找文件。
谢谢你的阅读和帮助。
audiolab安装程序出错:
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].
要在mac中安装libdsnd(在Yosemite 10.10.3中测试):
1-安装自制(粘贴在终端上):
ruby-e“$(curl-fsSLhttps://raw.githubusercontent.com/Homebrew/install/master/install)”
2-安装libsnd:
3-链接libsnd:
4-安装scikits.audiolab:
给你!
对于windows用户: 下载文件:
来自
"https://www.lfd.uci.edu/~gohlke/pythonlibs/#scikits.audiolab"
使用命令安装它:pip install scikits.audiolab‑0.11.0‑cp27‑cp27m‑win32.whl
使用安装程序从http://www.mega-nerd.com/libsndfile/安装
libsndfile
:从
C:\Program Files (x86)\Mega-Nerd\libsndfile\bin
复制"libsndfile-1.dll"
到Python安装文件夹中的文件夹Lib\site-packages\scikits\audiolab
, 例如:C:\Python2711\Lib\site-packages\scikits\audiolab
对我来说这解决了一个问题。 给
"https://github.com/cournape/audiolab/issues/7"
-"samuelgarcia"
的学分libsndfile_python
听起来像是对libsndfile
的绑定,而不是libsndfile
本身的绑定。您可能没有安装libsndfile
。但是,如果您已经安装了开发人员工具,安装起来应该很容易:cd
到您解包的目录。./configure
make -j8
sudo make -j8 install
然后,您可以删除已解包的目录,但您可能希望保留该目录以便于卸载。
相关问题 更多 >
编程相关推荐