pyaudio报错

pyaudio报错安装 pyaudio 报错 Error failedbuildi 安装 pyaudio 报错 Error failedbuildi 解决方法重新安装安装 pyaudio 报错 Error failedbuildi 0 2 11 tar gz 37kB Buildingwhee

安装pyaudio报错 Error: failed building wheel for pyaudio

安装pyaudio报错 Error: failed building wheel for pyaudio

Collecting pyaudio Downloading PyAudio-0.2.11.tar.gz (37 kB) Building wheels for collected packages: pyaudio Building wheel for pyaudio (setup.py) ... error ERROR: Command errored out with exit status 1: command: /home/456/miniconda3/bin/python -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-ct4vzxya/pyaudio_baf6a49f597c73d13cc069ad0/setup.py'"'"'; __file__='"'"'/tmp/pip-install-ct4vzxya/pyaudio_baf6a49f597c73d13cc069ad0/setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(__file__) if os.path.exists(__file__) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' bdist_wheel -d /tmp/pip-wheel-0tkhm98h cwd: /tmp/pip-install-ct4vzxya/pyaudio_baf6a49f597c73d13cc069ad0/ Complete output (14 lines): running bdist_wheel running build running build_py creating build creating build/lib.linux-x86_64-3.9 copying src/pyaudio.py -> build/lib.linux-x86_64-3.9 running build_ext building '_portaudio' extension creating build/temp.linux-x86_64-3.9 creating build/temp.linux-x86_64-3.9/src gcc -pthread -B /home/456/miniconda3/compiler_compat -Wl,--sysroot=/ -Wno-unused-result -Wsign-compare -DNDEBUG -O2 -Wall -fPIC -O2 -isystem /home/456/miniconda3/include -fPIC -O2 -isystem /home/456/miniconda3/include -fPIC -I/home/456/miniconda3/include/python3.9 -c src/_portaudiomodule.c -o build/temp.linux-x86_64-3.9/src/_portaudiomodule.o src/_portaudiomodule.c:29:23: fatal error: portaudio.h: 没有那个文件或目录 compilation terminated. error: command '/usr/bin/gcc' failed with exit code 1 ---------------------------------------- ERROR: Failed building wheel for pyaudio Running setup.py clean for pyaudio Failed to build pyaudio Installing collected packages: pyaudio Running setup.py install for pyaudio ... error ERROR: Command errored out with exit status 1: command: /home/456/miniconda3/bin/python -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-ct4vzxya/pyaudio_baf6a49f597c73d13cc069ad0/setup.py'"'"'; __file__='"'"'/tmp/pip-install-ct4vzxya/pyaudio_baf6a49f597c73d13cc069ad0/setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(__file__) if os.path.exists(__file__) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /tmp/pip-record-rlredyv7/install-record.txt --single-version-externally-managed --compile --install-headers /home/456/miniconda3/include/python3.9/pyaudio cwd: /tmp/pip-install-ct4vzxya/pyaudio_baf6a49f597c73d13cc069ad0/ Complete output (14 lines): running install running build running build_py creating build creating build/lib.linux-x86_64-3.9 copying src/pyaudio.py -> build/lib.linux-x86_64-3.9 running build_ext building '_portaudio' extension creating build/temp.linux-x86_64-3.9 creating build/temp.linux-x86_64-3.9/src gcc -pthread -B /home/456/miniconda3/compiler_compat -Wl,--sysroot=/ -Wno-unused-result -Wsign-compare -DNDEBUG -O2 -Wall -fPIC -O2 -isystem /home/456/miniconda3/include -fPIC -O2 -isystem /home/456/miniconda3/include -fPIC -I/home/456/miniconda3/include/python3.9 -c src/_portaudiomodule.c -o build/temp.linux-x86_64-3.9/src/_portaudiomodule.o src/_portaudiomodule.c:29:23: fatal error: portaudio.h: 没有那个文件或目录 compilation terminated. error: command '/usr/bin/gcc' failed with exit code 1 ---------------------------------------- ERROR: Command errored out with exit status 1: /home/456/miniconda3/bin/python -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-ct4vzxya/pyaudio_baf6a49f597c73d13cc069ad0/setup.py'"'"'; __file__='"'"'/tmp/pip-install-ct4vzxya/pyaudio_baf6a49f597c73d13cc069ad0/setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(__file__) if os.path.exists(__file__) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /tmp/pip-record-rlredyv7/install-record.txt --single-version-externally-managed --compile --install-headers /home/456/miniconda3/include/python3.9/pyaudio Check the logs for full command output. 

解决方法

安装缺少的依赖

// An highlighted block sudo apt install libasound-dev portaudio19-dev libportaudio2 libportaudiocpp0 ffmpeg libav-tools 

重新安装

Using cached PyAudio-0.2.11.tar.gz (37 kB) Building wheels for collected packages: pyaudio Building wheel for pyaudio (setup.py) ... done Created wheel for pyaudio: filename=PyAudio-0.2.11-cp39-cp39-linux_x86_64.whl size=26089 sha256=b36acee38a95de923c5e5ee632c0c5b3d8fc0dad12b6dd5f3 Stored in directory: /home/456/.cache/pip/wheels/76/e7/d6/193c174cc4cba9409e8eecea8f9e986fc9c88e0dfe8 Successfully built pyaudio Installing collected packages: pyaudio Successfully installed pyaudio-0.2.11 
版权声明:本文内容由互联网用户自发贡献,该文观点仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请联系我们举报,一经查实,本站将立刻删除。

发布者:全栈程序员-站长,转载请注明出处:https://javaforall.net/220034.html原文链接:https://javaforall.net

(0)
上一篇 2026年3月17日 下午9:23
下一篇 2026年3月17日 下午9:24


相关推荐

  • during initialization of VM java/lang/NoClassDefFoundError: java/lang/invoke/MethodHandle

    during initialization of VM java/lang/NoClassDefFoundError: java/lang/invoke/MethodHandleduring initialization of VM java/lang/NoClassDefFoundError: java/lang/invoke/MethodHandle

    2022年4月23日
    58
  • SIM简介「建议收藏」

    SIM简介「建议收藏」5月17日,国际电信日。在这天,北京通信公司开始对北京城里的政府单位医疗机构等集体发放小灵通号码,随着小灵通在北京市区的出现,以及中国南北两大电信公司的互联互通,网通电信移动联通4足鼎立的局面已经形成,传统的高价资费模式已经被打破,单向收费和准单向收费成为人们最津津乐道的话题。现在全国各地移动联通公司纷纷推出价格便宜、针对不同阶层的手机卡。我为大家介绍一下中国的手机品牌卡以所支持的功能,希望能为即…

    2022年10月7日
    6
  • 一个典型的晶体管开关电路

    一个典型的晶体管开关电路

    2021年12月17日
    46
  • 大数据建模流程之任务分析

    大数据建模流程之任务分析上一篇文章我们简单阐述了,大多数研究者在进行大数据分析时,所存在的逻辑问题,并简明扼要的对大数据建模流程进行了说明,那么为了使大家更加清晰每一个步骤的具体内容,我们将每一个模块展开分析。详细阐述流程中具体要做的工作内容?一.宏观角度无论是大数据还是人工智能技术,其实都是需求或者项目主题的实现手段,商业上希望技术能够将产品向商品转化,或者对市场进行科学的分析,从而引导公司决策更符合市场需求;科研上希望技术能够进行多学课融合,使得科研结果更具有说服力,亦或者是技术本身的创新与变革,使得科技文明不断发展。由此

    2022年6月4日
    47
  • PHP headers_sent() 函数

    PHP headers_sent() 函数

    2021年9月22日
    50
  • OkGo使用缓存(苹果清理缓存)

    添加依赖:implementation’com.lzy.net:okgo:3.0.4’添加网络权限:<uses-permissionandroid:name="android.permission.INTERNET"/>准备网络数据:使用:OkGo.getInstance().init(getApplication()…

    2022年4月12日
    41

发表回复

您的邮箱地址不会被公开。 必填项已用 * 标注

关注全栈程序员社区公众号