我正在使用python 2.7.13 shell,正如你在下面的代码中看到的那样,我已经安装了语音识别,但它没有显示出来。
>>> pip.main (['install','speechrecognition'])
Requirement already satisfied: speechrecognition in
c:\python27\lib\site-packages
0
>>> import speechrecognition
Traceback (most recent call last):
File "<pyshell#4>", line 1, in <module>
import speechrecognition
ImportError: No module named speechrecognition
>>>
答案 0 :(得分:1)
尝试
import speech_recognition
注意下划线