When installing pyaudio, an error is reported: failed error: portaudio. H: there is no such file or directory
The operation of pyaudio depends on the portaudio library. You should first install a portaudio library
Portaudio installation steps:
A) Download PortAudio Library http://portaudio.com/download.html , select the latest tgz, upload it to Linux or termux and place it where you want to install it. Termux: I put it in/data/data/com.termux/files/usr/share, and CD it to this directory
B) tar – zxvf file name Unzip the downloaded files without tar, such as apt get install tar
C) enter the decompressed portaudio file and execute the following commands in turn:
./configure
(configure command)
This step is generally used to generate makefile to prepare for the next step of compilation. You can control the installation by adding parameters after configure. For example, the code:./configure – prefix =/usr means to install the software under/usr, and the executable file will be installed in/usr/bin (instead of the default/usr/local/bin), The resource file will be installed in/usr/share (instead of the default/usr/local/share). At the same time, some software configuration files can be set by specifying the – sys config = parameter. Some software can also add – with, – enable, – without, – disable and other parameters to control the compilation. You can view the detailed instructions and help by allowing./configure – help.
In termux, this step is set to
./configure –prefix=/data/data/com.termux/files/usr
)
make compile
make install Installation
4. Install pyaudio library, PIP3 install pyaudio
Read More:
- When python installs pocketsphinx module (package), an error is reported: command ‘swig.exe’ failed: No such file or directory
- In VS2010, the compiler cannot open the file “GL / glaux. H”: no such file or directory
- 【linux】error: stdio.h: No such file or directory
- gcc /usr/include/stdio.h:27:10: fatal error: bits/libc-header-start.h: No such file or directory
- Cannot open include file: ‘io.h‘: No such file or directory
- When installing ROS: bash / opt / ROS / kinetic/ setup.bash : there is no file or directory
- VS2010 compiler can’t open include file: “GL / glaux. H”: no such file or directory
- Fatal error in CentOS: Python. H: no that file or directory
- How to solve the problem of “unable to open include file:” graphics. H “: no such file or directory”
- #During OpenGL development, fatal error C1083: can’t open include file: “GL / glut. H”: no such file or directory
- fatal error: Python.h: No such file or directory compilation terminated.
- fatal error: Python.h: No such file or directory
- [C]fatal error: mysql.h: No such file or directory
- fatal error: Python.h: No such file or directory
- Compiling the pi_kernel source code appears: fatal error: openssl/opensslv.h: No such file or directory
- Solution of header file StdAfx. H “no such file or directory” in Visual Studio
- [Caffe] fatal error: hdf5.h: No such file or directory error solution
- No such file or directory error when redis is started under Windows
- [Solved] Docker ubuntu swoole fatal error: openssl/ssl.h: No such file or directory
- fatal error: openssl/bio.h: No such file or directory settlement programme