Sang Hồ
Sang Hồ

Reputation: 1

How to pip install pyaudio

D:\sanghoclaptrinh\python\Baymax>pip install pyaudio

D:\sanghoclaptrinh\python\Baymax>pip install pyaudio Requirement already satisfied: pyaudio in c:\users\ho sang\appdata\local\packages\pythonsoftwarefoundation.python.3.10_qbz5n2kfra8p0\localcache\local-packages\python310\site-packages (0.2.11)

D:\sanghoclaptrinh\python\Baymax>nghe.py Traceback (most recent call last): File "C:\Users\Ho Sang\AppData\Local\Programs\Python\Python311\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 "D:\sanghoclaptrinh\python\Baymax\nghe.py", line 4, in with speech_recognition.Microphone() as mic: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\Ho Sang\AppData\Local\Programs\Python\Python311\Lib\site-packages\speech_recognition_init_.py", line 80, in init self.pyaudio_module = self.get_pyaudio() ^^^^^^^^^^^^^^^^^^ File "C:\Users\Ho Sang\AppData\Local\Programs\Python\Python311\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

Upvotes: 0

Views: 369

Answers (3)

user22191183
user22191183

Reputation:

I'm using python 3.11.4 {microsoft store version} and works fine.

you can download it here.

Upvotes: 0

Sherzod Urinov
Sherzod Urinov

Reputation: 1

Birinchi navbatda pythonni o'rnating keyin esa uni system path ga qo'shing , agar sizda pip is not recognized xatosi kelib chiqsa python o'rnatilishidan oldin pip oldiga tasdiqlash belgisini bosib o'rnating. win+r -> cmd -> pip install pyaudio. Bu ishlarni qilganingizdan keyin pyaudio paketi o'rnatilishi kerak

Upvotes: -1

Pushkar Ambatkar
Pushkar Ambatkar

Reputation: 47

First of all check out this blog on installing pyaudio > https://pythonpoint.net/how-to-install-pyaudio-in-python/

Tip: Install PyAudio using Administrator CMD.

Upvotes: 0

Related Questions