第七色在线视频,2021少妇久久久久久久久久,亚洲欧洲精品成人久久av18,亚洲国产精品特色大片观看完整版,孙宇晨将参加特朗普的晚宴

為了賬號(hào)安全,請(qǐng)及時(shí)綁定郵箱和手機(jī)立即綁定
已解決430363個(gè)問題,去搜搜看,總會(huì)有你想問的

Traceback AttributeError:模塊“pyaudio”沒有屬性

Traceback AttributeError:模塊“pyaudio”沒有屬性

慕尼黑的夜晚無繁華 2023-07-18 15:41:53
我安裝了 SpechRecognition,當(dāng)我寫作時(shí)import speech_recognition as sr# obtain audio from the microphoner = sr.Recognizer()with sr.Microphone() as source:    print("Say something!")    audio = r.listen(source)try:    # for testing purposes, we're just using the default API key    # to use another API key, use `r.recognize_google(audio, key="GOOGLE_SPEECH_RECOGNITION_API_KEY")`    # instead of `r.recognize_google(audio)`    print("Google Speech Recognition thinks you said " + r.recognize_google(audio))except sr.UnknownValueError:    print("Google Speech Recognition could not understand audio")except sr.RequestError as e:    print("Could not request results from Google Speech Recognition service; {0}".format(e))出現(xiàn)了上述問題。同樣的問題在這里被問到,但解決方案對(duì)我沒有幫助! AttributeError:模塊“pyaudio”沒有屬性“__version__” 請(qǐng)幫助我!我的終端輸出:-Traceback (most recent call last):File "c:/Users/samar/OneDrive/Desktop/MAIN/projects/Jarvis/jarvis.py", line 4, in <module>    with sr.Microphone() as source:File "C:\Users\samar\AppData\Local\Programs\Python\Python38\lib\site-packages\speech_recognition\__init__.py", line 79, in __init__    self.pyaudio_module = self.get_pyaudio()File "C:\Users\samar\AppData\Local\Programs\Python\Python38\lib\site-packages\speech_recognition\__init__.py", line 112, in get_pyaudio    if LooseVersion(pyaudio.__version__) < LooseVersion("0.2.11"):AttributeError: module 'pyaudio' has no attribute '__version__'
查看完整描述

1 回答

?
汪汪一只貓

TA貢獻(xiàn)1898條經(jīng)驗(yàn) 獲得超8個(gè)贊

當(dāng)我從非官方 Python 包安裝包并在終端中運(yùn)行代碼時(shí)。有效!



查看完整回答
反對(duì) 回復(fù) 2023-07-18
  • 1 回答
  • 0 關(guān)注
  • 131 瀏覽
慕課專欄
更多

添加回答

舉報(bào)

0/150
提交
取消
微信客服

購課補(bǔ)貼
聯(lián)系客服咨詢優(yōu)惠詳情

幫助反饋 APP下載

慕課網(wǎng)APP
您的移動(dòng)學(xué)習(xí)伙伴

公眾號(hào)

掃描二維碼
關(guān)注慕課網(wǎng)微信公眾號(hào)