Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

PyAudio (PortAudio issue) Python

I installed pyaudio with anaconda python. Using conda install pyaudio on windows. It said it installed and it also installed PortAudio with it.

However, when I create my file and run it now I get the following issue.

I have no idea what is going on.

Could not import the PyAudio C module '_portaudio'.
Traceback (most recent call last):
  File "C:\Users\This PC\Desktop\Py\demo.py", line 2, in <module>
    import pyaudio
  File "C:\Users\This PC\Anaconda3\lib\site-packages\pyaudio.py", line 116, in <module>
    import _portaudio as pa
ImportError: DLL load failed: The specified module could not be found.
like image 852
KevinM1990112qwq Avatar asked Oct 16 '22 14:10

KevinM1990112qwq


1 Answers

I ran into this error with win32 py3 using Anaconda3. Re-installing portaudio fixed this:

conda install portaudio

It just updated the package for me, and pyaudio was able to find the DLL then.

like image 151
abhinav Avatar answered Oct 20 '22 23:10

abhinav