我尝试使用“pip install pyaudio”通过 cmd 安装 pyaudio 最初它给了我一个 c++ 14.0 错误,我最终能够解决,但之后又出现了另一个错误。我使用 python 3.7,我的系统在 Windows 10 上运行
下面是显示在 cmd 上的错误。
C:\WINDOWS\system32>pip install pyaudio
Collecting pyaudio
Using cached
https://files.pythonhosted.org/packages/ab/42/b4f04721c5c5bfc196ce156b3c768998ef8c0ae3654ed29ea5020c749a6b/PyAudio-0.2.11.tar.gz
Building wheels for collected packages: pyaudio
Running setup.py bdist_wheel for pyaudio ... error
Complete output from command c:\users\fm\appdata\local\programs\python\python37-32\python.exe -u -c "import setuptools, tokenize;__file__='C:\\Users\\FM\\AppData\\Local\\Temp\\pip-install-hybhd5fp\\pyaudio\\setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" bdist_wheel -d C:\Users\FM\AppData\Local\Temp\pip-wheel-77sivvg_ --python-tag cp37:
running bdist_wheel
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
相关分类