无法在Windows 10英特尔笔记本电脑中安装PyAudio

时间:2019-08-27 19:32:31

标签: pyaudio

我在安装PyAudio时遇到PyCharm错误。 我已经安装了Microsoft Visual C ++ 14和SpeechRecognition。

错误: 错误:命令“ C:\ Program Files(x86)\ Microsoft Visual Studio 14.0 \ VC \ BIN \ cl.exe”失败,退出状态为2

收集PyAudio   使用缓存的https://files.pythonhosted.org/packages/ab/42/b4f04721c5c5bfc196ce156b3c768998ef8c0ae3654ed29ea5020c749a6b/PyAudio-0.2.11.tar.gz 安装收集的软件包:PyAudio   为PyAudio运行setup.py安装:已启动     为PyAudio运行setup.py安装:状态为“错误”     从命令C:\ Users \ User \ PycharmProjects \ FreeHands \ venv \ Scripts \ python.exe -u -c“ import setuptools,tokenize; file ='C:\ Users \ User \ AppData \ Local \ Temp \ pycharm-packaging \ PyAudio \ setup.py'; f = getattr(tokenize,'open',open)( file ); code = f.read()。replace(' \ r \ n','\ n'); f.close(); exec(compile(code, file ,'exec'))“ install --record C:\ Users \ User \ AppData \ Local \ Temp \ pip-onzq8wq4-record \ install-record.txt-单一版本-外部管理-编译--install-headers C:\ Users \ User \ PycharmProjects \ FreeHands \ venv \ include \ site \ python3.7 \ PyAudio:     运行安装     运行构建     运行build_py     创建版本     创建build \ lib.win32-3.7     复制src \ pyaudio.py-> build \ lib.win32-3.7     警告:build_py:禁用字节编译,正在跳过。

running build_ext
building '_portaudio' extension
creating build\temp.win32-3.7
creating build\temp.win32-3.7\Release
creating build\temp.win32-3.7\Release\src
C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\BIN\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -IC:\Users\User\PycharmProjects\FreeHands\venv\include -IC:\Users\User\AppData\Local\Programs\Python\Python37-32\include -IC:\Users\User\AppData\Local\Programs\Python\Python37-32\include "-IC:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\INCLUDE" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.10240.0\ucrt" "-IC:\Program Files (x86)\Windows Kits\8.1\include\shared" "-IC:\Program Files (x86)\Windows Kits\8.1\include\um" "-IC:\Program Files (x86)\Windows Kits\8.1\include\winrt" /Tcsrc/_portaudiomodule.c /Fobuild\temp.win32-3.7\Release\src/_portaudiomodule.obj
_portaudiomodule.c
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\\cl.exe' failed with exit status 2

----------------------------------------

高速缓存条目反序列化失败,条目被忽略 命令“ C:\ Users \ User \ PycharmProjects \ FreeHands \ venv \ Scripts \ python.exe -u -c”导入设置工具,标记化; 文件 ='C:\ Users \ User \ AppData \ Local \ Temp \ pycharm-packaging \ PyAudio \ setup.py'; f = getattr(tokenize,'open',open)( file ); code = f.read()。replace('\ r \ n','\ n'); f.close(); exec(compile(code, file ,'exec')))“安装--record C:\ Users \ User \ AppData \本地\ Temp \ pip-onzq8wq4-record \ install-record.txt-单一版本-外部管理-编译--install-headers C:\ Users \ User \ PycharmProjects \ FreeHands \ venv \ include \ site \ python3 .7 \ PyAudio“失败,错误代码为1:C:\ Users \ User \ AppData \ Local \ Temp \ pycharm-packaging \ PyAudio \ 您正在使用pip版本9.0.1,但是可以使用版本19.2.3。 您应该考虑通过“ python -m pip install --upgrade pip”命令进行升级。

0 个答案:

没有答案