-2

I am having an error downloading pyaudio, but there is a way to fix that by downloading a wheel, but I am also having an error downloading that too. How do I fix this error?

JoraSN
  • 332
  • 2
  • 14

1 Answers1

0

Get your appropriate .whl file from https://www.lfd.uci.edu/~gohlke/pythonlibs/ under pyaudio. You can find the appropriate .whl file by typing python in your cmd or terminal. You would get something like this:

Python 3.7.9 (tags/v3.7.9:13c94747c7, Aug 17 2020, 18:58:18) [MSC v.1900 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.

Image description:

enter image description here

Note the python version and if python is 64 or 32 bit. Then get the .whl file appropriate for that version and machine. For me it would be this .whl file:

PyAudio‑0.2.11‑cp37‑cp37m‑win_amd64.whl

Next, go to the place where it was downloaded. For example, C:\Users\user\Downloads> then install .whl file using pip. For example in my case:

pip install PyAudio-0.2.11-cp37-cp37m-win_amd64.whl
JoraSN
  • 332
  • 2
  • 14
  • thanks for replying but i tried the same procedure before posting a Question on stack overflow, but it says "the .whl file is not compatible with python version" – Max Anthony Jan 04 '22 at 12:07
  • what version of the wheel are you using. – JoraSN Jan 04 '22 at 20:38
  • PyAudio-0.2.11-cp38-cp38-win32.whl – Max Anthony Jan 06 '22 at 04:35
  • @MaxAnthony Is your bit really 32 bit? Look at my image description in my above-edited post. – JoraSN Jan 06 '22 at 05:12
  • @MaxAnthony if your python version is 3.8 and your bit is probably 64-bit try this wheel: `PyAudio‑0.2.11‑cp38‑cp38‑win_amd64.whl` from: https://www.lfd.uci.edu/~gohlke/pythonlibs/#pyaudio – JoraSN Jan 08 '22 at 21:09