gpt4 book ai didi

python - 用于 python 2.7 的 audiolab

转载 作者:太空狗 更新时间:2023-10-30 02:49:28 25 4
gpt4 key购买 nike

我的系统中安装了 python 2.7,我需要使用 audiolab 模块。我从以下站点下载:http://www.lfd.uci.edu/~gohlke/pythonlibs/#scikits.audiolab

当我导入 scikits.audiolab 时,出现以下错误:

    Traceback (most recent call last):
File "C:/Python27/trystuff", line 1, in <module>

from scikits.audiolab import formatinfo as format

File "C:\Python27\lib\site-packages\scikits\__init__.py", line 1, in <module>

__import__('pkg_resources').declare_namespace(__name__)

ImportError: No module named pkg_resources

我该怎么办?

最佳答案

此处有适用于 python 2.7 的 scikits.audiolab(以及许多其他内容)的 Windows 二进制版本:
http://www.lfd.uci.edu/~gohlke/pythonlibs/#scikits.audiolab

audiolab 还需要 libsndfile。该链接就在那个页面上,但我也会把它放在这里,因为 libsndfile 很棒:
http://www.mega-nerd.com/libsndfile/#Download

PS:您需要将 libsndfile-1.dll 放在 python 可以找到的地方。如果您不介意浪费一点点磁盘空间,您可以将它的副本放在 Python27\Lib\site-packages\scikits\audiolab\pysndfile 目录中。

关于python - 用于 python 2.7 的 audiolab,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/8007201/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com