pyaudio installtion error in windows

假如想象 提交于 2019-12-01 20:57:24

问题


I am using python 2.7 in my windows 10 system. When i try to install pyaudio from command prompt using the command

easy_install pyaudio

I am getting the following error message:

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"' failed with exit status 2

I also tried

pip install pyaudio

And this time getting this error message:

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

C:\Users\Ankit>pip install pyaudio

You are using pip version 6.0.8, however version 7.1.1 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.

Collecting pyaudio

Could not find any downloads that satisfy the requirement pyaudio
Some externally hosted files were ignored as access to them may be unreliable

 (use --allow-external pyaudio to allow).

No distributions at all found for pyaudio

Please help me out.Thanks in advance!!


回答1:


Look at the output:

Some externally hosted files were ignored as access to them may be unreliable    
(use --allow-external pyaudio to allow).

You can install it adding extra arguments to pip:

pip install pyaudio --allow-external pyaudio --allow-unverified pyaudio

Also, do you have PortAudio installed?



来源:https://stackoverflow.com/questions/32160102/pyaudio-installtion-error-in-windows

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!