pythonwindowspippyaudioportaudio

PyAudio Wheel is Unsupported?


PyAudio. It's been a well-known problem for a while now that when installing PyAudio, you can't do pip install PyAudio, because it will tell you that it couldn't find portaudio.h.

So, as you go on your journey to be taught by some Indian guy on YouTube, you realize that all the videos say the same thing: you have to manually install the wheel (https://pypi.org/project/PyAudio/#files), by downloading it, then doing pip install <path-to-wheel>.

However, as of September 2019, this method no longer works. The command prompt will simply tell you that the wheel is unsupported, without any other information. And so far, there is nothing on the internet that I can find that will tell you how to fix this problem on a Windows machine. Is there some kind of work around?

(Python: 3.7.4, Pip: 19.2.3)

EDIT:

I will get back to this question soon, but my desktop is broken at the moment. Once I get it back up and running, I will test whatever suggestions are in the comments/answers sections.


Solution

  • As phd already commented...

    From the PyAudio documentation:

    Currently, there are wheels compatible with the official distributions of Python 2.7, 3.4, 3.5, and 3.6. For those versions, both 32-bit and 64-bit wheels are available.

    You are running Python 3.7.4, there is no wheel available for this version. The exact same thing is perfectly visible on PyPI: there is no wheel available for the Python version cp37.

    You will have to either pick a compatible version of Python or compile the wheel yourself.

    If you feel adventurous, you could try the --python-version option of pip install and the other associated options. I would not recommend it though.


    There are some wheels available on this 3rd party website:

    https://www.lfd.uci.edu/~gohlke/pythonlibs/#pyaudio