Я не получаю установку библиотеки pyaudio в свою систему

Это результат:

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 error: Microsoft Visual C++ 14.0 is required. Get it with "Microsoft Visual C++ Build Tools": https://visualstudio.microsoft.com/downloads/  

Command "c:\users\vishwas\appdata\local\programs\python\python37\python.exe -u -c "import setuptools, tokenize;__file__='C:\\Users\\Vishwas\\AppData\\Local\\Temp\\pip-install-g9skf8fa\\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\Vishwas\AppData\Local\Temp\pip-record-8gf9jsxc\install-record.txt --single-version-externally-managed --compile" failed with error code 1 in C:\Users\Vishwas\AppData\Local\Temp\pip-install-g9skf8fa\PyAudio\

«Где это связано с python и c++»

Я пробовал все методы, даже easy_install, но не сработало:

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\vishwas\appdata\local\programs\python\python37\python.exe -u -c "import setuptools, tokenize;__file__='C:\\Users\\Vishwas\\AppData\\Local\\Temp\\pip-install-g9skf8fa\\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\Vishwas\AppData\Local\Temp\pip-record-8gf9jsxc\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                                                                                         error: Microsoft Visual C++ 14.0 is required. Get it with "Microsoft Visual C++ Build Tools": https://visualstudio.microsoft.com/downloads/                                                                                                                                                                                                                             ----------------------------------------                                                                            Command "c:\users\vishwas\appdata\local\programs\python\python37\python.exe -u -c
"import setuptools, tokenize;__file__='C:\\Users\\Vishwas\\AppData\\Local\\Temp\\pip-install-g9skf8fa\\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\Vishwas\AppData\Local\Temp\pip-record-8gf9jsxc\install-record.txt --single-version-externally-managed --compile" failed with error code 1 in C:\Users\Vishwas\AppData\Local\Temp\pip-install-g9skf8fa\PyAudio\

person vishwas narayan    schedule 07.04.2019    source источник
comment
как говорится: установите инструменты сборки Windows (ссылка указана в ошибке)   -  person jcuypers    schedule 07.04.2019
comment
Возможный дубликат ошибка pip install pyaudio error cl.exe   -  person phd    schedule 07.04.2019
comment
stackoverflow.com/search?q=%5Bpyaudio%5D+%5Bpip%5D+install   -  person phd    schedule 07.04.2019


Ответы (1)


Похоже, что для некоторых зависимостей требуются инструменты сборки от Micrsoft Studio. Так что не должно быть проблем с их установкой по ссылкам в сообщении об ошибке.

person PowerStat    schedule 12.04.2019