pip install pyaudio 请注意,pip 是Python的包管理工具,用于安装和管理Python包。执行命令并等待安装完成: 按下回车键执行命令后,pip 将自动从Python包索引(PyPI)下载 pyaudio 及其依赖项,并进行安装。 安装过程可能需要一些时间,具体取决于您的网络连接和计算机性能。 安装完成后,您应该会看到一条消息表明 pyaud...
shgbitai@shgbitai-C9X299-PGF:~/pythonworkspace/ai-accompany$ pip install pyaudio sounddevice error: externally-managed-environment × This environment is externally managed ╰─> To install Python packages system-wide, try apt install python3-xyz, where xyz is the package you are trying to insta...
PyAudio ... error Complete output from command C:\Users\Waaberi\AppData\Local\Programs\Python\Python37-32\python.exe -u -c "import setuptools, tokenize;__file__='C:\\Users\\Waaberi\\AppData\\Local\\Temp\\pip-install-e5le61j0\\PyAudio\\setup.py';f=getattr(tokenize, 'open', open...
ERROR: Command errored out with exit status 1: 'c:\python38\python.exe' -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\Administrator\\AppData\\Local\\Temp\\pip-install-m6oeci17\\pyaudio_c8557100e30446cabb941c1c6428849d\\setup.py'"'"'; _...
5、安装pyaudio库,pip install pyaudio 感谢“咦,有个BUG” ===补充=== 经过上面手动安装portaudio之后,好像在.bashrc里面添加lib路径不起作用,python运行出错,报libportaudio.so.2: cannot open shared object file: No such file or directory 于是再次面向百度...
2、将下载好的 PyAudio‑0.2.11‑cp37‑cp37m‑win_amd64.whl 文件拷贝到python安装路径的pip.exe同级目录下。 一般来说路径在:C:\***\Python\Python37\Scripts 3、win+R打开cmd命令窗口,切换到pip.exe路径下,执行以下命令: 1 pip install PyAudio‑0.2.11‑cp37‑cp37m‑win_amd64.whl...
brew install portaudio 然后尝试: pip install pyAudio 。如果安装后问题仍然存在 portAudio ,您可以指定编译器能够找到源程序的目录路径(例如: portaudio.h)。由于标头应位于 /usr/local/include 目录中: pip install --global-option='build_ext' --global-option='-I/usr/local/include' --global-option='...
2、将下载好的 PyAudio‑0.2.11‑cp37‑cp37m‑win_amd64.whl ⽂件拷贝到python安装路径的pip.exe同级⽬录下。⼀般来说路径在:C:\***\Python\Python37\Scripts 3、win+R打开cmd命令窗⼝,切换到pip.exe路径下,执⾏以下命令:pip install PyAudio‑0.2.11‑cp37‑cp37m‑win_am...
sudo pip3 install pyaudio --no-binary :all: 或者: 代码语言:javascript 复制 python -m pip install --upgrade pip python -m pip install --no-use-pep517 pyaudio 另一种选择是降低pip的评级。虽然我以前没有使用过pyaudio,但是我在其他库中得到了这个错误,上面的解决方案之一通常会修复它。有一个很好...
/python -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-GCltlv/pyaudio/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp...