Pycharm не может установить PyAudio на Mac - PullRequest
0 голосов
/ 16 апреля 2020

Хотел установить PyAudio для создания программы распознавания речи, видимо мой pycharm выдает ошибку, когда я устанавливаю его, не знаю почему, попытался установить его с помощью терминала, тоже ошибка -

Запуск setup.py установить для PyAudio ... ошибка

    ERROR: Command errored out with exit status 1:
     command: /System/Library/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/MacOS/Python -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/cj/3q_3db6537gfp2g6fkntpy0h0000gp/T/pip-install-MoRAHv/PyAudio/setup.py'"'"'; __file__='"'"'/private/var/folders/cj/3q_3db6537gfp2g6fkntpy0h0000gp/T/pip-install-MoRAHv/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 /private/var/folders/cj/3q_3db6537gfp2g6fkntpy0h0000gp/T/pip-record-B_a0Ni/install-record.txt --single-version-externally-managed --compile
         cwd: /private/var/folders/cj/3q_3db6537gfp2g6fkntpy0h0000gp/T/pip-install-MoRAHv/PyAudio/
    Complete output (16 lines):
    running install
    running build
    running build_py
    creating build
    creating build/lib.macosx-10.15-x86_64-2.7
    copying src/pyaudio.py -> build/lib.macosx-10.15-x86_64-2.7
    running build_ext
    building '_portaudio' extension
    creating build/temp.macosx-10.15-x86_64-2.7
    creating build/temp.macosx-10.15-x86_64-2.7/src
    cc -fno-strict-aliasing -fno-common -dynamic -g -Os -pipe -fno-common -fno-strict-aliasing -fwrapv -DENABLE_DTRACE -DMACOSX -DNDEBUG -Wall -Wstrict-prototypes -Wshorten-64-to-32 -iwithsysroot /usr/local/libressl/include -DNDEBUG -g -fwrapv -Os -Wall -Wstrict-prototypes -DENABLE_DTRACE -arch x86_64 -pipe -DMACOSX=1 -I/System/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c src/_portaudiomodule.c -o build/temp.macosx-10.15-x86_64-2.7/src/_portaudiomodule.o
    src/_portaudiomodule.c:29:10: fatal error: 'portaudio.h' file not found
    #include "portaudio.h"
             ^~~~~~~~~~~~~
    1 error generated.
    error: command 'cc' failed with exit status 1
    ----------------------------------------
ERROR: Command errored out with exit status 1: /System/Library/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/MacOS/Python -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/cj/3q_3db6537gfp2g6fkntpy0h0000gp/T/pip-install-MoRAHv/PyAudio/setup.py'"'"'; __file__='"'"'/private/var/folders/cj/3q_3db6537gfp2g6fkntpy0h0000gp/T/pip-install-MoRAHv/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 /private/var/folders/cj/3q_3db6537gfp2g6fkntpy0h0000gp/T/pip-record-B_a0Ni/install-record.txt --single-version-externally-managed --compile Check the logs for full command output.
Добро пожаловать на сайт PullRequest, где вы можете задавать вопросы и получать ответы от других членов сообщества.
...