R
R
Roman Agagulov2021-08-03 13:40:50
Python
Roman Agagulov, 2021-08-03 13:40:50

I can't fix the error, what's the problem?

help me solve the problem... reinstalled python, installed new, old versions of python, updated all modules. but the error is...

Traceback (most recent call last):
File "C:\Users\Roman\AppData\Local\Programs\Python\Python39\lib\site-packages\
speech_recognition\__init__.py", line 108, in get_pyaudio
import pyaudio
ModuleNotFoundError: No module named 'pyaudio'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "R:\vik\Viktoria.py", line 911, in
command = listen_command( )
File "R:\vik\Viktoria.py", line 99, in listen_command
with sr.Microphone() as source:
File "C:\Users\Roman\AppData\Local\Programs\Python\Python39\lib\site-packages\
speech_recognition\__init__.py", line 79, in __init__
self.pyaudio_module = self.get_pyaudio()
File "C: \Users\Roman\AppData\Local\Programs\Python\Python39\lib\site-packages\
speech_recognition\__init__.py", line 110, in get_pyaudio
raise AttributeError("Could not find PyAudio; check installation")
AttributeError: Could not find PyAudio; check installation

Answer the question

In order to leave comments, you need to log in

3 answer(s)
A
Alan Gibizov, 2021-08-03
@RoMoN0975

Currently, there are wheels compatible with the official distributions of Python 2.7, 3.4, 3.5, and 3.6

S
s19s93, 2021-08-03
@s19s93

ModuleNotFoundError: No module named 'pyaudio'

R
RINAMI, 2021-08-03
@RINAMI

The 'pyaudio' module is not installed, to install it type pip install pyaudio (in the console), before that COMPLETELY uninstall and re-download the latest version of python link.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question