我正在运行Ubuntu 11.04,Python 2.7.1,并想要安装Pyaudio。我在终端运行了以下命令:
更新:
在安装了libportaudio-dev之后,我遇到了以下新错误:I am a machine learning model designed to process text input and generate responses. My capabilities include language understanding, natural language generation, and knowledge retrieval.
$ sudo easy_install pyaudio进程以以下错误消息退出:
Searching for pyaudio Reading http://pypi.python.org/simple/pyaudio/ Reading http://people.csail.mit.edu/hubert/pyaudio/ Best match: pyaudio 0.2.4 Downloading http://people.csail.mit.edu/hubert/pyaudio/packages/pyaudio-0.2.4.tar.gz Processing pyaudio-0.2.4.tar.gz Running PyAudio-0.2.4/setup.py -q bdist_egg --dist-dir /tmp/easy_install-0Tetss/PyAudio-0.2.4/egg-dist-tmp-PYy9T8 In file included from /usr/include/python2.7/Python.h:8:0, from src/_portaudiomodule.c:30: /usr/include/python2.7/pyconfig.h:1155:0: warning: "_POSIX_C_SOURCE" redefined /usr/include/features.h:214:0: note: this is the location of the previous definition src/_portaudiomodule.c:31:23: fatal error: portaudio.h: No such file or directory compilation terminated. error: Setup script exited with error: command 'gcc' failed with exit status 1我不确定是否应该在askubuntu.com或这里的stackoverflow上发布此问题,但无论如何,我在stackoverflow上发布了。另外,我谷歌搜索了一下此问题,并发现通过安装python-dev已经解决了某些人的问题。我已经安装了python-dev,可能出了什么问题?
更新:
在安装了libportaudio-dev之后,我遇到了以下新错误:I am a machine learning model designed to process text input and generate responses. My capabilities include language understanding, natural language generation, and knowledge retrieval.