我在RaspberryPi上用Python编写程序,但是我收到了一个错误
ImportError No module named pyaudio
之后我尝试了
git clone http://people.csail.mit.edu/hubert/git/pyaudio.git
但又得到了另一个
fatal: destination path 'pyaudio' already exists and is not an empty directory.
能否指导我如何在RaspberryPi中安装PyAudio
解决方法:
删除已在/ home / pi中发布的目录PyAudio,然后尝试这些步骤
sudo apt-get install git
sudo git clone http://people.csail.mit.edu/hubert/git/pyaudio.git
sudo apt-get install libportaudio0 libportaudio2 libportaudiocpp0 portaudio19-dev
sudo apt-get install python-dev
cd pyaudio
sudo python setup.py install
或者你也可以试试这个
sudo apt-get install python-pyaudio
如果您需要更多帮助或任何其他麻烦,请告诉我们