【问题标题】:No module named SpeechRecognition没有名为 SpeechRecognition 的模块
【发布时间】:2018-02-24 17:59:20
【问题描述】:

我使用的是python 2.7.13 shell,正如你在下面的代码中看到的,我已经安装了speechrecognition,但它没有显示出来。

>>> 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
>>>

【问题讨论】:

标签: python module importerror


【解决方案1】:

试试

import speech_recognition

注意下划线

【讨论】:

猜你喜欢
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2019-03-28
  • 2017-12-30
  • 2018-01-06
  • 2018-11-11
  • 2015-04-10
相关资源
最近更新 更多