Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

514
Views
portaudio.h: No existe tal archivo o directorio

Recibí el siguiente error al intentar instalar pyaudio usando pip3 en ubuntu 16.04:

 Collecting pyaudio Downloading PyAudio-0.2.11.tar.gz Installing collected packages: pyaudio Running setup.py install for pyaudio ... error Complete output from command /usr/bin/python3 -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-mxgvewdb/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-v55chjee-record/install-record.txt --single-version-externally-managed --compile: running install running build running build_py creating build creating build/lib.linux-x86_64-3.5 copying src/pyaudio.py -> build/lib.linux-x86_64-3.5 running build_ext building '_portaudio' extension creating build/temp.linux-x86_64-3.5 creating build/temp.linux-x86_64-3.5/src x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I/usr/include/python3.5m -c src/_portaudiomodule.c -o build/temp.linux-x86_64-3.5/src/_portaudiomodule.o src/_portaudiomodule.c:29:23: fatal error: portaudio.h: No such file or directory compilation terminated. error: command 'x86_64-linux-gnu-gcc' failed with exit status 1 ---------------------------------------- Command "/usr/bin/python3 -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-mxgvewdb/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-v55chjee-record/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /tmp/pip-build-mxgvewdb/pyaudio/
over 4 years ago · Santiago Trujillo
3 answers
Answer question

0

esto debería ayudar

 $ sudo apt-get install portaudio19-dev python-pyaudio python3-pyaudio

Probado en Ubuntu 18.04 , Python 3.7.2 , pyaudio 0.2.11

Añadido el 8 de enero de 2021:

En Ubuntu 20.04 tienes que usar:

 $ sudo apt install portaudio19-dev python3-pyaudio
over 4 years ago · Santiago Trujillo Report

0

Para ventanas,
esto es lo que he estado pasando...

Hay varias formas de instalar PortAudio

  • vcpkg, https://vcpkg.info/port/portaudio

  • ala, https://winget.run/pkg/intxcc/pyaudio

  • O compilar manualmente desde la fuente e instalar manualmente

    1. fuente de descarga, http://files.portaudio.com/download.html
    2. construya con cmake, con el compilador correspondiente (msvc/mingw) y arch (x64/x86) para su Python
    3. coloque " portaudio.h " en el directorio python-include, por ejemplo, c:\Python38-32\include\
    4. coloque " portaudio.lib en el directorio python-lib, por ejemplo, c:\Python38-32\libs

¡Arr!
la macro "min()" en el archivo fuente de pyaudio _portaudiomodule.c es problemática, coméntelo manualmente

  • pip install pyaudio --no-clean
  • busque _portaudiomodule.c en el directorio temporal y comente manualmente la macro "min()"
    por ejemplo c:\Temp\pip-install-yysb8bme\pyaudio_c92585\src\_portaudiomodule.c
  • pip install desde ese directorio
    por ejemplo pip install c:\Temp\pip-install-yysb8bme\pyaudio_c92585\

O ruedas de terceros

  • esta respuesta dijo:

pip install pipwin
pipwin install pyaudio

over 4 years ago · Santiago Trujillo Report

0

Para Centos7/RHEL:

 yum install portaudio-devel alsa-lib-devel portaudio pip install pyaudio --user
over 4 years ago · Santiago Trujillo Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!