Проблема с pip на Linux
Я хотел установить PyAudio на kali linux и когда я вводил команду на установку PyAudio у меня появилась ошибка:
$ python3.7 -m pip install PyAudio
Defaulting to user installation because normal site-packages is not writeable
Collecting PyAudio
Using cached PyAudio-0.2.11.tar.gz (37 kB)
Building wheels for collected packages: PyAudio
Building wheel for PyAudio (setup.py) ... error
ERROR: Command errored out with exit status 1:
command: /usr/bin/python3.7 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-g6hitvfq/PyAudio/setup.py'"'"'; __file__='"'"'/tmp/pip-install-g6hitvfq/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 /tmp/pip-wheel-3f74ndc4
cwd: /tmp/pip-install-g6hitvfq/PyAudio/
Complete output (16 lines):
running bdist_wheel
running build
running build_py
creating build
creating build/lib.linux-i686-3.7
copying src/pyaudio.py -> build/lib.linux-i686-3.7
running build_ext
building '_portaudio' extension
creating build/temp.linux-i686-3.7
creating build/temp.linux-i686-3.7/src
i686-linux-gnu-gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I/usr/include/python3.7m -c src/_portaudiomodule.c -o build/temp.linux-i686-3.7/src/_portaudiomodule.o
src/_portaudiomodule.c:28:10: fatal error: Python.h: Нет такого файла или каталога
28 | #include "Python.h"
| ^~~~~~~~~~
compilation terminated.
error: command 'i686-linux-gnu-gcc' failed with exit status 1
----------------------------------------
ERROR: Failed building wheel for PyAudio
Running setup.py clean for PyAudio
Failed to build PyAudio
Installing collected packages: PyAudio
Running setup.py install for PyAudio ... error
ERROR: Command errored out with exit status 1:
command: /usr/bin/python3.7 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-g6hitvfq/PyAudio/setup.py'"'"'; __file__='"'"'/tmp/pip-install-g6hitvfq/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 /tmp/pip-record-s9ytkelr/install-record.txt --single-version-externally-managed --user --prefix= --compile --install-headers /home/script/.local/include/python3.7m/PyAudio
cwd: /tmp/pip-install-g6hitvfq/PyAudio/
Complete output (16 lines):
running install
running build
running build_py
creating build
creating build/lib.linux-i686-3.7
copying src/pyaudio.py -> build/lib.linux-i686-3.7
running build_ext
building '_portaudio' extension
creating build/temp.linux-i686-3.7
creating build/temp.linux-i686-3.7/src
i686-linux-gnu-gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I/usr/include/python3.7m -c src/_portaudiomodule.c -o build/temp.linux-i686-3.7/src/_portaudiomodule.o
src/_portaudiomodule.c:28:10: fatal error: Python.h: Нет такого файла или каталога
28 | #include "Python.h"
| ^~~~~~~~~~
compilation terminated.
error: command 'i686-linux-gnu-gcc' failed with exit status 1
----------------------------------------
ERROR: Command errored out with exit status 1: /usr/bin/python3.7 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-g6hitvfq/PyAudio/setup.py'"'"'; __file__='"'"'/tmp/pip-install-g6hitvfq/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 /tmp/pip-record-s9ytkelr/install-record.txt --single-version-externally-managed --user --prefix= --compile --install-headers /home/script/.local/include/python3.7m/PyAudio Check the logs for full command output.
Что мне делать?