How do I install PyAudio on Python 3.7?

后端 未结 9 1176
小鲜肉
小鲜肉 2020-12-06 02:06

I am currently trying to install PyAudio on Python 3.7 but when I use the command "pip install pyaudio", an error message appears:

9条回答
  •  我在风中等你
    2020-12-06 02:53

    It is supported in Python 3.7. Even though not officially on standalone 3.7, Anaconda 2019.10 which uses 3.7 has it. So you have 2 options:

    1. You can conda install -c anaconda pyaudio, if you use Anaconda
    2. Or for standalone Python 3.7 you can:

    2a) After installing the .whl, build portaudio.dll just following the instructions at http://portaudio.com/docs/v19-doxydocs/compile_windows.html. I used VS2019 and i worked. Note if you choose ASIO option you will need ASIO SDK from https://www.steinberg.net/en/company/developers.html

    After that just put portaudio.dll anywhere in your system path or local directory and you can import pyaudio.

    2b) If you don't want to build, simply steal portaudio.dll from Anaconda. It's in /Library/bin

提交回复
热议问题