python-3.x - 我如何解决(python3.7 64bit)中的pyaudio安装问题

标签 python-3.x pyaudio

当我通过 cmd 安装 pyadio 时出现了生成错误

***收集pyaudio

命令 "c:\users\this pc\appdata\local\programs\python\python37\python.exe"-u -c "import setuptools, tokenize; file ='C:\Users 的完整输出\THISPC~1\AppData\Local\Temp\

编译:

运行安装

running build

running build_py

creating build

creating build\lib.win-amd64-3.7

copying src\pyaudio.py -> build\lib.win-amd64-3.7

running build_ext

building '_portaudio' extension

error: Microsoft Visual C++ 14.0 is required. Get it with "Microsoft Visual C++ Build Tools": http://landinghub.visualstudio.com/visual-cpp-build-tools***

但我已经安装了 Microsoft Visual C++ 14.0

最佳答案

当我们尝试在 Windows 上安装 Pyaudio 时,它会给我们很多依赖错误。
我能想出的最佳解决方案是使用 conda 环境来解决这个问题。
在我正在使用的 Pycharm(IDE)中设置 conda 环境后,我们可以简单地安装 Pyaudio 使用 Pip 命令。
pip 安装 PyAudio
使用以下链接下载并安装 Anaconda3:-
https://www.anaconda.com/products/individual
希望这可以帮助。

关于python-3.x - 我如何解决(python3.7 64bit)中的pyaudio安装问题,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/52369227/

相关文章:

python - 将 pyaudio 安装到 docker 容器

使用另一个过程的 Python 过程不返回任何内容

python-3.x - 客户端凭据流中的 requests-oauthlib 自动刷新不记名 token ?

python-3.x - Jupyter 笔记本 Python 内核 - FileNotFoundError : [Errno 2] No such file or directory python3

python - 在 Windows 上使用鼠标、键盘和语音检测事件

python - PyAudio引发缓冲区不足/溢出的异常

python-3.x - 在 Python 3.4.3 中,如何使用 IMAP 协议(protocol)发送标志 'Seen'

python - 如何写入 CSV 而不覆盖过去的文本

python - PyAudio 不会安装

python - 在Python中随机开始播放多个循环音轨?