Python 为什么即使在我安装了pyaudio之后也找不到它?
我有以下代码:Python 为什么即使在我安装了pyaudio之后也找不到它?,python,pyaudio,modulenotfounderror,Python,Pyaudio,Modulenotfounderror,我有以下代码: import speech_recognition as siri listener = siri.Recognizer() try: with siri.Microphone() as sources: print("Listening.") voice = listener.listen(sources) command = listener.recognize_google(voice)
import speech_recognition as siri
listener = siri.Recognizer()
try:
with siri.Microphone() as sources:
print("Listening.")
voice = listener.listen(sources)
command = listener.recognize_google(voice)
print(command)
except Exception as e:
print(e)
但是,我得到了一个ModuleNotFound错误
Could not find PyAudio; check installation
但我已经安装了它:
Requirement already satisfied: PyAudio in
c:\users\name\appdata\local\programs\python\python36\lib\site-packages (0.2.11)
去
按字母顺序搜索,直到找到Pyaudio
单击与python版本和os位匹配的链接
下载完成后,转到电脑上的下载
打开那里
运行命令:pip安装“filename”
例如:pip安装PyAudio-0.2.11-cp39-cp39-win_amd64.whl
它应该有用 在IDLEwhat's python version中键入
help(“modules”)
,检查是否可以在所有模块的列表中看到PyAudio
?您有64位还是32位操作系统?