apt install python3.9-dev
Чтение списков пакетов… Готово
Построение дерева зависимостей… Готово
Чтение информации о состоянии… Готово
E: Невозможно найти пакет python3.9-dev
E: Не удалось найти ни один пакет с помощью шаблона «python3.9-dev»
error: subprocess-exited-with-error
× Building wheel for pyaudio (pyproject.toml) did not run successfully.
│ exit code: 1
╰─> [19 lines of output]
running bdist_wheel
running build
running build_py
creating build
creating build/lib.linux-x86_64-pypy39
creating build/lib.linux-x86_64-pypy39/pyaudio
copying src/pyaudio/__init__.py -> build/lib.linux-x86_64-pypy39/pyaudio
running build_ext
building 'pyaudio._portaudio' extension
creating build/temp.linux-x86_64-pypy39
creating build/temp.linux-x86_64-pypy39/src
creating build/temp.linux-x86_64-pypy39/src/pyaudio
gcc -pthread -DNDEBUG -O2 -fPIC -I/usr/local/include -I/usr/include -I/root/code/first_test/ass/envpypy/include -I/usr/include/pypy3.9 -c src/pyaudio/device_api.c -o build/temp.linux-x86_64-pypy39/src/pyaudio/device_api.o
In file included from src/pyaudio/device_api.c:1:
src/pyaudio/device_api.h:7:10: fatal error: Python.h: Нет такого файла или каталога
7 | #include "Python.h"
| ^~~~~~~~~~
compilation terminated.
error: command '/usr/bin/gcc' failed with exit code 1
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building wheel for pyaudio
Failed to build pyaudio
ERROR: Could not build wheels for pyaudio, which is required to install pyproject.toml-based projects