gpt4 book ai didi

python-3.x - 尝试在 Windows 10 上运行的 pyCharm venv 中运行 pip install pyAudio 时出现此错误

转载 作者:行者123 更新时间:2023-12-03 22:31:10 24 4
gpt4 key购买 nike

(venv) C:\Users\Jaymoh\PycharmProjects\Elisanta>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\Jaymoh\PycharmProjects\Elisanta\venv\Scripts\python.exe -u -c "import setuptools, tokenize;file='C:\Users\Jaymoh\AppData\Local\Temp \pip-install-sp8mdmpo\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\Jaymoh\AppData\Local\Temp\pip-record-jxykmy44\install-record.txt --single-version-externally-managed --compile --install-headers C:\Users\Jaymoh\PycharmProjects\Elisa nta\venv\include\site\python3.7\PyAudio: running install running build running build_py creating build creating build\lib.win32-3.7 copying src\pyaudio.py -> build\lib.win32-3.7 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\2017\BuildTools\VC\Tools\MSVC\14.15.26726\bin\HostX86\x86\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -IC:\Users\Jaymoh\PycharmProje cts\Elisanta\venv\include -IC:\Users\Jaymoh\AppData\Local\Programs\Python\Python37-32\include -IC:\Users\Jaymoh\AppData\Local\Programs\Python\Python37-32\include "-IC:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\VC\Tools\MSVC\14.15.26726\include" "-IC:\Program Files (x86)\Windows Kits\NETFXSDK\4.6.1\include\um" /Tcsrc/_portaudiomodule.c /Fobuild\ temp.win32-3.7\Release\src/_portaudiomodule.obj _portaudiomodule.c src/_portaudiomodule.c(27): fatal error C1083: Cannot open include file: 'stdio.h': No such file or directory error: command 'C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\VC\Tools\MSVC\14.15.26726\bin\HostX86\x86\cl.exe' failed with exit status 2

---------------------------------------- Command "C:\Users\Jaymoh\PycharmProjects\Elisanta\venv\Scripts\python.exe -u -c "import setuptools, tokenize;file='C:\Users\Jaymoh\AppData\Local\Temp\pip-install-sp8mdmpo\ 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\Jaymoh\A ppData\Local\Temp\pip-record-jxykmy44\install-record.txt --single-version-externally-managed --compile --install-headers C:\Users\Jaymoh\PycharmProjects\Elisanta\venv\include\site\py thon3.7\PyAudio" failed with error code 1 in C:\Users\Jaymoh\AppData\Local\Temp\pip-install-sp8mdmpo\PyAudio\

最佳答案

只需安装 pipwin来自 pip install pipwin和运行

pipwin install pyaudio

关于python-3.x - 尝试在 Windows 10 上运行的 pyCharm venv 中运行 pip install pyAudio 时出现此错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/52979292/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com