Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
660 views
in Technique[技术] by (71.8m points)

python - pip install pyaudio error cl.exe failed

C:Program Files (x86)Microsoft Visual C++ Build Tools>pip install pyaudio
Collecting pyaudio
  Using cached PyAudio-0.2.11.tar.gz
Installing collected packages: pyaudio
  Running setup.py install for pyaudio ... error
    Complete output from command c:python27python.exe -u -c "import setuptools, tokenize;__file__='C:\Users\cybercry\AppData\Local\Temp\pip-build-tder68r3\pyaudio\setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('
', '
');f.close();exec(compile(code, __file__, 'exec'))" install --record C:UserscybercryAppDataLocalTemppip-0p059g11-recordinstall-record.txt --single-version-externally-managed --compile:
    running install
    running build
    running build_py
    creating build
    creating buildlib.win-amd64-3.7
    copying srcpyaudio.py -> buildlib.win-amd64-3.7
    running build_ext
    building '_portaudio' extension
    creating buildemp.win-amd64-3.7
    creating buildemp.win-amd64-3.7Release
    creating buildemp.win-amd64-3.7Releasesrc
    C:Program Files (x86)Microsoft Visual Studio 14.0VCBINx86_amd64cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -DMS_WIN64=1 -Ic:python27include -Ic:python27include "-IC:Program Files (x86)Microsoft Visual Studio 14.0VCINCLUDE" "-IC:Program Files (x86)Windows Kits10include10.0.10240.0ucrt" "-IC:Program Files (x86)Windows Kits8.1includeshared" "-IC:Program Files (x86)Windows Kits8.1includeum" "-IC:Program Files (x86)Windows Kits8.1includewinrt" "-IC:Program Files (x86)Microsoft Visual Studio 14.0VCINCLUDE" "-IC:Program Files (x86)Windows Kits10include10.0.10240.0ucrt" "-IC:Program Files (x86)Windows Kits8.1includeshared" "-IC:Program Files (x86)Windows Kits8.1includeum" "-IC:Program Files (x86)Windows Kits8.1includewinrt" /Tcsrc/_portaudiomodule.c /Fobuildemp.win-amd64-3.7Releasesrc/_portaudiomodule.obj
    _portaudiomodule.c
    c:python27includepyconfig.h(117): warning C4005: 'MS_WIN64': macro redefinition
    c:python27includepyconfig.h(117): note: command-line arguments:  see previous definition of 'MS_WIN64'
    src/_portaudiomodule.c(29): fatal error C1083: Cannot open include file: 'portaudio.h': No such file or directory
    error: command 'C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\BIN\x86_amd64\cl.exe' failed with exit status 2

    ----------------------------------------
Command "c:python27python.exe -u -c "import setuptools, tokenize;__file__='C:\Users\cybercry\AppData\Local\Temp\pip-build-tder68r3\pyaudio\setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('
', '
');f.close();exec(compile(code, __file__, 'exec'))" install --record C:UserscybercryAppDataLocalTemppip-0p059g11-recordinstall-record.txt --single-version-externally-managed --compile" failed with error code 1 in C:UserscybercryAppDataLocalTemppip-build-tder68r3pyaudio
See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

Prebuilt wheels of PyAudio are currently available for Python 2.7 and 3.4-3.6. If you don't want to use Python 3.6 and want to install PyAudio in 3.7 you have to compile and install PortAudio and PyAudio from sources. See the instructions at

http://portaudio.com/docs/v19-doxydocs/tutorial_start.html

https://smaudet.wordpress.com/2014/01/26/building-pyaudio-on-windows-7-x64-using-the-free-msvc-toolchains/


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

Just Browsing Browsing

[5] html - How to create even cell spacing within a

1.4m articles

1.4m replys

5 comments

57.0k users

...