0
0 комментариев

Python 3.7

macOS Sierra 10.12.5

Пишу:

pip3 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 /Library/Frameworks/Python.framework/Versions/3.7/bin/python3.7 -u -c «import setuptools, tokenize;__file__=’/private/var/folders/c3/cd69fxjj5f51913hm560w0c00000gn/T/pip-install-r436_ene/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/c3/cd69fxjj5f51913hm560w0c00000gn/T/pip-record-7r2fwmf7/install-record.txt —single-version-externally-managed —compile:

running install

running build

running build_py

creating build

creating build/lib.macosx-10.9-x86_64-3.7

copying src/pyaudio.py -> build/lib.macosx-10.9-x86_64-3.7

running build_ext

building ‘_portaudio’ extension

creating build/temp.macosx-10.9-x86_64-3.7

creating build/temp.macosx-10.9-x86_64-3.7/src

gcc -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -arch x86_64 -g -DMACOSX=1 -I/Library/Frameworks/Python.framework/Versions/3.7/include/python3.7m -c src/_portaudiomodule.c -o build/temp.macosx-10.9-x86_64-3.7/src/_portaudiomodule.o

src/_portaudiomodule.c:29:10: fatal error: ‘portaudio.h’ file not found

#include «portaudio.h»

^~~~~~~~~~~~~

1 error generated.

error: command ‘gcc’ failed with exit status 1

—————————————-

Command «/Library/Frameworks/Python.framework/Versions/3.7/bin/python3.7 -u -c «import setuptools, tokenize;__file__=’/private/var/folders/c3/cd69fxjj5f51913hm560w0c00000gn/T/pip-install-r436_ene/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/c3/cd69fxjj5f51913hm560w0c00000gn/T/pip-record-7r2fwmf7/install-record.txt —single-version-externally-managed —compile» failed with error code 1 in /private/var/folders/c3/cd69fxjj5f51913hm560w0c00000gn/T/pip-install-r436_ene/PyAudio/

Решенный вопрос
Добавить комментарий