speech_recognition
speech_recognition copied to clipboard
Facing issues in installing pyaudio
I'm constantly getting this error, please give me solution for this,
Defaulting to user installation because normal site-packages is not writeable Collecting pyaudio Using cached PyAudio-0.2.11.tar.gz (37 kB) Preparing metadata (setup.py) ... error error: subprocess-exited-with-error
× python setup.py egg_info did not run successfully.
│ exit code: 1
╰─> [11 lines of output]
Traceback (most recent call last):
File "
note: This error originates from a subprocess, and is likely not a problem with pip. error: metadata-generation-failed
× Encountered error while generating package metadata. ╰─> See above for output.
note: This is an issue with the package mentioned above, not pip. hint: See above for details.
PIP's PyAudio doesn't support python 3.10. Download it from here: https://www.lfd.uci.edu/~gohlke/pythonlibs/#pyaudio and install it via pip install %actualPackageName% ran in the downloaded directory
Hello, I had this problem too the first time I installed. It's a problem with Windows, The fix is below.
pip install pipwin
pipwin install PyAudio