更新pyaudio不起作用

时间:2018-01-07 12:34:50

标签: python raspberry-pi pyaudio

我想将Raspberry Pi 3上的pyaudio更新到最新版本(实际上是0.2.11)。
为此,我尝试了:sudo pip install pyaudio --upgrade
这是结果:

Downloading/unpacking pyaudio from https://pypi.python.org/packages/ab/42/b4f04721c5c5bfc196ce156b3c768998ef8c0ae3654ed29ea5020c749a6b/PyAudio-0.2.11.tar.gz#md5=7e4c88139284033f67b4336c74eda3b8
  Downloading PyAudio-0.2.11.tar.gz
  Running setup.py (path:/tmp/pip-build-ulhKae/pyaudio/setup.py) egg_info for package pyaudio

Installing collected packages: pyaudio
  Found existing installation: PyAudio 0.2.8
    Not uninstalling PyAudio at /usr/lib/python2.7/dist-packages, owned by OS
  Running setup.py install for pyaudio
    building '_portaudio' extension
    arm-linux-gnueabihf-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fno-strict-aliasing -D_FORTIFY_SOURCE=2 -g -fstack-protector-strong -Wformat -Werror=format-security -fPIC -I/usr/include/python2.7 -c src/_portaudiomodule.c -o build/temp.linux-armv7l-2.7/src/_portaudiomodule.o
    arm-linux-gnueabihf-gcc -pthread -shared -Wl,-O1 -Wl,-Bsymbolic-functions -Wl,-z,relro -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -D_FORTIFY_SOURCE=2 -g -fstack-protector-strong -Wformat -Werror=format-security -Wl,-z,relro -D_FORTIFY_SOURCE=2 -g -fstack-protector-strong -Wformat -Werror=format-security build/temp.linux-armv7l-2.7/src/_portaudiomodule.o -lportaudio -o build/lib.linux-armv7l-2.7/_portaudio.so

Successfully installed pyaudio
Cleaning up...

但是当我现在sudo pip show pyaudio时,我明白了:

---
Name: PyAudio
Version: 0.2.8
Location: /usr/lib/python2.7/dist-packages
Requires: 

还有旧版的pyaudio ...

有人可以帮我吗?

1 个答案:

答案 0 :(得分:0)

很奇怪,你有没有尝试更新Pip?

尝试其中一些命令:

  • pip install --upgrade pip

如果这不起作用,请尝试删除当前版本的PyAudio,然后重新安装。

  • pip uninstall pyaudio