小编Bjö*_*ing的帖子

Windows 中的 pyaudio 安装错误

我在 Windows 10 系统中使用 python 2.7。当我尝试使用命令从命令提示符安装 pyaudio 时

easy_install pyaudio
Run Code Online (Sandbox Code Playgroud)

我收到以下错误消息:

Microsoft Windows [Version 10.0.10240]
(c) 2015 Microsoft Corporation. All rights reserved.

C:\Users\Ankit>easy_install pyaudio
Searching for pyaudio

Reading http://pypi.python.org/simple/pyaudio/
Best match: pyaudio 0.2.8

Downloading http://people.csail.mit.edu/hubert/pyaudio/packages/pyaudio-0.2.8.tar.gz#md5=

Processing pyaudio-0.2.8.tar.gz
Running PyAudio-0.2.8\setup.py -q bdist_egg --dist-dir

 c:\users\ankit\appdata\local\temp\easy_install-ejvxxc\PyAudio-0.2.8\egg-dist-tmp-42gjeh

warning: no files found matching '*.c' under directory 'test'

_portaudiomodule.c
src/_portaudiomodule.c(29) : fatal error C1083: Cannot open include file:

 'portaudio.h': No such file or directory

 error: Setup script exited with error: command '"C:\Program Files(x86)\Microsoft Visual Studio 9.0\VC\BIN\cl.exe"' …
Run Code Online (Sandbox Code Playgroud)

python windows command-prompt python-2.7

5
推荐指数
1
解决办法
2万
查看次数

标签 统计

command-prompt ×1

python ×1

python-2.7 ×1

windows ×1