PyAudio error at the time of intallation (subprocess-exited-with-error)

We Are Going To Discuss About PyAudio error at the time of intallation (subprocess-exited-with-error). So lets Start this Python Article.

PyAudio error at the time of intallation (subprocess-exited-with-error)

  1. How to solve PyAudio error at the time of intallation (subprocess-exited-with-error)

    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:

    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
    or if the above doesn't work try:
    Since pyAudio has portAudio as a dependency, you first have to install portaudio.
    brew install portaudio
    Then try: pip3 install pyAudio. If the problem persists after installing portAudio, you can specify the directory path where the compiler will be able to find the source programs (e.g: portaudio.h). Since the headers should be in the /usr/local/include directory:
    pip install --global-option='build_ext' --global-option='-I/usr/local/include' --global-option='-L/usr/local/lib' pyaudio
     

  2. PyAudio error at the time of intallation (subprocess-exited-with-error)

    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:

    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
    or if the above doesn't work try:
    Since pyAudio has portAudio as a dependency, you first have to install portaudio.
    brew install portaudio
    Then try: pip3 install pyAudio. If the problem persists after installing portAudio, you can specify the directory path where the compiler will be able to find the source programs (e.g: portaudio.h). Since the headers should be in the /usr/local/include directory:
    pip install --global-option='build_ext' --global-option='-I/usr/local/include' --global-option='-L/usr/local/lib' pyaudio
     

Solution 1

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

or if the above doesn’t work try:

Since pyAudio has portAudio as a dependency, you first have to install portaudio.

brew install portaudio

Then try: pip3 install pyAudio. If the problem persists after installing portAudio, you can specify the directory path where the compiler will be able to find the source programs (e.g: portaudio.h). Since the headers should be in the /usr/local/include directory:

pip install --global-option='build_ext' --global-option='-I/usr/local/include' --global-option='-L/usr/local/lib' pyaudio
Advertisements

Original Author jjoa Of This Content

Conclusion

Advertisements

So This is all About This Tutorial. Hope This Tutorial Helped You. Thank You.

Also Read,

ittutorial team

I am an Information Technology Engineer. I have Completed my MCA And I have 4 Year Plus Experience, I am a web developer with knowledge of multiple back-end platforms Like PHP, Node.js, Python and frontend JavaScript frameworks Like Angular, React, and Vue.

Leave a Comment