python – Windows中的pyaudio安装错误
内容导读
互联网集市收集整理的这篇技术教程文章主要介绍了python – Windows中的pyaudio安装错误,小编现在分享给大家,供广大互联网技能从业者学习和参考。文章包含1786字,纯文字阅读大概需要3分钟。
内容图文
![python – Windows中的pyaudio安装错误](/upload/InfoBanner/zyjiaocheng/964/c2fe3f22243c485ba1bab89367420d77.jpg)
我在我的Windows 10系统中使用python 2.7.当我尝试使用命令从命令提示符安装pyaudio时
easy_install pyaudio
我收到以下错误消息:
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
我也试过了
pip install pyaudio
这次收到此错误消息:
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
请帮帮我.谢谢!
解决方法:
看看输出:
Some externally hosted files were ignored as access to them may be unreliable
(use --allow-external pyaudio to allow).
您可以安装它为pip添加额外的参数:
pip install pyaudio --allow-external pyaudio --allow-unverified pyaudio
另外,你有PortAudio installed吗?
内容总结
以上是互联网集市为您收集整理的python – Windows中的pyaudio安装错误全部内容,希望文章能够帮你解决python – Windows中的pyaudio安装错误所遇到的程序开发问题。 如果觉得互联网集市技术教程内容还不错,欢迎将互联网集市网站推荐给程序员好友。
内容备注
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 gblab@vip.qq.com 举报,一经查实,本站将立刻删除。
内容手机端
扫描二维码推送至手机访问。