没有名为SpeechRecognition的模块

时间:2017-09-15 13:56:15

标签: python module importerror

我正在使用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
>>>

1 个答案:

答案 0 :(得分:1)

尝试

import speech_recognition

注意下划线

相关问题