Cannot install pyaudio, gcc error

前端 未结 9 1678
孤街浪徒
孤街浪徒 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:28

    This worked for me:

    sudo apt-get install libasound-dev portaudio19-dev libportaudio2 libportaudiocpp0
    sudo apt-get install ffmpeg libav-tools
    sudo pip install pyaudio
    
    0 讨论(0)
  • 2020-12-05 05:28

    For Centos7:

    sudo yum install -y portaudio-devel
    sudo pip install pyaudio
    
    0 讨论(0)
  • 2020-12-05 05:32

    On Ubuntu:

    sudo apt-get install python-pyaudio
    

    or

    sudo apt-get install python3-pyaudio
    
    0 讨论(0)
  • 2020-12-05 05:32

    step1:

    sudo apt-get install libasound-dev portaudio19-dev libportaudio2 libportaudiocpp0
    

    step 2:-

    pip install pyaudio --user
    
    0 讨论(0)
  • 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

    0 讨论(0)
  • 2020-12-05 05:38

    Install 2 things,

    sudo apt-get install portaudio19-dev python-pyaudio
    

    and then,

    pip install pyaudio
    
    0 讨论(0)
提交回复
热议问题