Cannot install pyaudio, gcc error

前端 未结 9 1685
孤街浪徒
孤街浪徒 2020-12-05 05:08

Trying to install pyaudio with instructions per here:

$ git clone http://people.csail.mit.edu/hubert/git/pyaudio.git
$ cd pyaudio
$ sudo python setup.py inst         


        
9条回答
  •  死守一世寂寞
    2020-12-05 05:36

    • First we need to install portaudio modules: sudo apt-get install libasound-dev
    • Download the portaudio archive from: http://portaudio.com/download.html

    • Unzip the archive: tar -zxvf [portaudio.tgz]

    • Enter the directory, then run: ./configure && make

    • Install: sudo make install

    • And finally: sudo pip install pyaudio

    • Check the version of pyaudio, it should be 0.2.9

提交回复
热议问题