2017-06-05 79 views
0

我將Python程序從2.10遷移到3.6。包scikits.talkbox是其中的一部分。但是,我無法弄清楚如何使用它。從pip安裝似乎工作正常,但我不能導入它。有沒有人遇到過這個問題?Python3的scikits.talkbox出錯了嗎?

[[email protected] ~]$ python --version 
Python 3.6.0 

[[email protected] ~]$ 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 

[[email protected] ~]$ 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__' 

回答