当我试图安装pyAudio
使用pip install pyaudio
,我得到的错误。看起来像这样:
C:\Users\pankajkaun>pip install pyaudio
Collecting pyaudio
Using cached https://files.pythonhosted.org/packages/ab/42/b4f04721c5c5bfc196ce156b3c768998ef8c0ae3654ed29ea5020c749a6b/PyAudio-0.2.11.tar.gz
Installing collected packages: pyaudio
Running setup.py install for pyaudio ... error
Complete output from command c:\users\pankajkaun\desktop\python\python.exe -u -c "import setuptools, tokenize;__file__='C:\\Users\\PANKAJ~1\\AppData\\Local\\Temp\\pip-install-pw8_ueh5\\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\PANKAJ~1\AppData\Local\Temp
\pip-record-eru_9orv\install-record.txt --single-version-externally-managed --compile:
running install
running build
running build_py
creating build
creating build\lib.win-amd64-3.7
copying src\pyaudio.py -> build\lib.win-amd64-3.7
running build_ext
building '_portaudio' extension
creating build\temp.win-amd64-3.7
creating build\temp.win-amd64-3.7\Release
creating build\temp.win-amd64-3.7\Release\src
C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\VC\Tools\MSVC\14.16.27023\bin\HostX86\x64\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -DMS_WIN64=1 -Ic:\users\pankajkaun\desktop\python\include -Ic:\users\pankajkaun\desktop\python\
include "-IC:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\VC\Tools\MSVC\14.16.27023\include" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\ucrt" "-
IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\shared" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\um" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\winrt" "-IC:
\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\cppwinrt" /Tcsrc/_portaudiomodule.c /Fobuild\temp.win-amd64-3.7\Release\src/_portaudiomodule.obj
_portaudiomodule.c
c:\users\pankajkaun\desktop\python\include\pyconfig.h(117): warning C4005: 'MS_WIN64': macro redefinition
src/_portaudiomodule.c: note: 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\\2017\\BuildTools\\VC\\Tools\\MSVC\\14.16.27023\\bin\\HostX86\\x64\\cl.exe' failed with exit status 2
----------------------------------------
Command "c:\users\pankajkaun\desktop\python\python.exe -u -c "import setuptools, tokenize;__file__='C:\\Users\\PANKAJ~1\\AppData\\Local\\Temp\\pip-install-pw8_ueh5\\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\PANKAJ~1\AppData\Local\Temp\pip-record-eru_9orv\install-record.txt --single-version-externally-managed --compile" failed with error code 1 in C:\Users\PANKAJ~1\AppData\Local\Temp\pip-install-pw8_ueh5\pyaudio\
知道这里发生了什么吗?
尝试以下操作(在管理员模式命令提示符下):
pip install pipwin
pipwin install pyaudio
pipwin就像pip一样,但是它安装了Christoph Gohlke提供的预编译的Windows二进制文件。为您节省大量的Google搜寻和手动下载。
问题内容: 问题答案: PyAudio的预制轮子目前可用于Python 2.7和3.4-3.6。如果您不想使用Python 3.6并想在3.7中安装PyAudio,则必须从源代码编译并安装PortAudio和PyAudio。请参阅以下说明 http://portaudio.com/docs/v19-doxydocs/tutorial_start.html https://smaudet.wordp
问题内容: 尝试使用安装软件包时显示错误,而其他软件包正在正常安装。我正在使用python 3.7。为什么会发生此错误? 问题答案: 在运行python 3.6时,此方法有效,但在python 3.7中则无效。 PyAudio仅支持python 3.6: pip将获取并安装PyAudio滚轮(预包装的二进制文件)。当前,有一些轮子与Python 2.7、3.4、3.5和3.6的官方发行版兼容。 解
问题内容: 我正在运行Ubuntu 11.04,Python 2.7.1,并想安装Pyaudio。所以我跑了 在终端中,并退出并显示以下错误消息, 我不确定是将其发布在askubuntu.com还是在stackoveflow中发布,但是无论如何,它都在stackoverflow中。另外我用谷歌搜索了一下这个问题,发现通过安装python- dev已经解决了一些问题。我已经安装了python-dev
试图安装卡玛 就会产生警告 最后,似乎没有因果报应 然而,这似乎是一种因果报应 还有builerror.log档案 我需要安装python才能与业力工作还是有其他问题?提前感谢任何帮助!
在设备中运行android,并报告以下错误 正在安装APK的应用程序调试。应用程序:调试10:53:48 E/1765594925:上传应用程序调试时出错。apk:未知故障([CDS]关闭[0])无法安装/Users/xiaotian/Desktop/wanme\u rn/android/app/build/outputs/apk/app debug。apk公司 失败:生成失败,出现异常。 > 通
你好,而试图在真正的Android设备上运行我的Flutter应用程序im得到以下错误 我尝试:更新Android Studioflutter升级flutter酒吧获取...... 但还没有找到解决方案,希望任何人都能帮忙