使用Python3 scikits.talkbox出了什么问题?

时间:2017-06-05 09:26:34

标签: python-3.x pip python-2.x scikits

我正在将Python程序从2.10迁移到3.6。包scikits.talkbox是其中的一部分。但是,我无法弄清楚如何再使用它。来自pip的安装似乎工作正常,但我无法导入它。以前有人遇到过这个问题吗?

[manjaro@manjaro-pc ~]$ python --version
Python 3.6.0

[manjaro@manjaro-pc ~]$ sudo pip install scikits.talkbox
Collecting scikits.talkbox
  Using cached scikits.talkbox-0.2.5.tar.gz
Requirement already satisfied: numpy in /usr/lib/python3.6/site-packages (from scikits.talkbox)
Installing collected packages: scikits.talkbox
  Running setup.py install for scikits.talkbox ... done
Successfully installed scikits.talkbox-0.2.5

[manjaro@manjaro-pc ~]$ python 
Python 3.6.0 (default, Jan 16 2017, 12:12:55) 
[GCC 6.3.1 20170109] on linux
Type "help", "copyright", "credits" or "license" for more information.

>>> import scikits.talkbox
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/lib/python3.6/site-packages/scikits/talkbox/__init__.py", line 5, in <module>
    __all__ += tools.__all__
AttributeError: module 'tools' has no attribute '__all__'

1 个答案:

答案 0 :(得分:0)

您的问题的答案是此链接Error while importing scikits.talkbox 即使我正面临这个问题 我已切换到librosa

MFCC功能有另一种方式:python_speech_features http://python-speech-features.readthedocs.io/en/latest/