- Не удается установить PyAudio 0.2.11 в Ubuntu 16.04
- 7 ответов
- PyAudio
- What’s new
- March 18, 2017
- January 16, 2017
- October 19, 2015
- October 18, 2015
- April 12, 2014
- January 30, 2014
- October 27, 2012
- October 14, 2012
- August 22, 2012
- April 20, 2012
- March 7, 2012
- December 7, 2010
- November 2, 2010
- October 12, 2010
- November 2, 2008
- March 5, 2008
- Installation
- Documentation & Examples
- License
- Acknowledgements
- Cannot install PyAudio 0.2.11 in ubuntu 16.04
- 8 Answers 8
- diegopacheco / pyaudio-ubuntu-install.md
- This comment has been minimized.
- said026 commented Oct 12, 2017
- This comment has been minimized.
- BenjaminThomas1999 commented Dec 19, 2017
- This comment has been minimized.
- zkneupper commented Dec 22, 2017 •
- This comment has been minimized.
- maruschin commented Jan 25, 2018
- This comment has been minimized.
- abilakim commented Jan 26, 2018
- This comment has been minimized.
- ultimate809 commented Feb 11, 2018
- This comment has been minimized.
- sunidhi20 commented Oct 18, 2018
- This comment has been minimized.
- denniel-sadian commented Dec 15, 2018
- This comment has been minimized.
- maelfosso commented Mar 3, 2019
- This comment has been minimized.
- ghost commented Apr 15, 2019
- This comment has been minimized.
- pks9862728888 commented May 25, 2019
- This comment has been minimized.
- sofianeMdjk commented Jun 9, 2019
- This comment has been minimized.
- SantiagoLopezDeharo commented Jul 18, 2019
- This comment has been minimized.
- NarasimmanSaravana1994 commented Sep 3, 2019
- This comment has been minimized.
- rijusougata13 commented Jan 12, 2020
- This comment has been minimized.
- BigCarrot1 commented Jan 14, 2020
- This comment has been minimized.
- basit26374 commented Feb 23, 2020
- This comment has been minimized.
- rohanishervin commented Mar 11, 2020
- This comment has been minimized.
- jabha400bc commented Mar 16, 2020
- This comment has been minimized.
- techsci81 commented Mar 21, 2020
- This comment has been minimized.
- harishcoder-dev commented Apr 20, 2020
- This comment has been minimized.
- louisroby commented Apr 20, 2020 •
- This comment has been minimized.
- findtharun commented May 23, 2020 •
- This comment has been minimized.
- IYERADavid commented Jun 11, 2020
- This comment has been minimized.
- Otumian-empire commented Dec 25, 2020 •
- This comment has been minimized.
- 2shweet commented Jan 11, 2021
- This comment has been minimized.
- CodeWithAlvin commented Feb 27, 2021
- This comment has been minimized.
- Gianlucca-git commented Apr 20, 2021
- This comment has been minimized.
- SukruGokk commented Apr 26, 2021
- error: invalid command ‘bdist_wheel’
- This comment has been minimized.
- ZhymabekRoman commented Apr 30, 2021
- error: invalid command ‘bdist_wheel’
- 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: ‘/home/sukru/Masaüstü/YAZILIM/PYTHON/voiceAssistant/bin/python3’ -u -c ‘import sys, setuptools, tokenize; sys.argv[0] = ‘»‘»‘/tmp/pip-install-ffwcbpr2/PyAudio/setup.py'»‘»‘; file='»‘»‘/tmp/pip-install-ffwcbpr2/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-096oscdf/install-record.txt —single-version-externally-managed —compile —install-headers ‘/home/sukru/Masaüstü/YAZILIM/PYTHON/voiceAssistant/include/site/python3.8/PyAudio’ cwd: /tmp/pip-install-ffwcbpr2/PyAudio/ Complete output (16 lines): running install running build running build_py creating build creating build/lib.linux-x86_64-3.8 copying src/pyaudio.py -> build/lib.linux-x86_64-3.8 running build_ext building ‘_portaudio’ extension creating build/temp.linux-x86_64-3.8 creating build/temp.linux-x86_64-3.8/src x86_64-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/home/sukru/Masaüstü/YAZILIM/PYTHON/voiceAssistant/include -I/usr/include/python3.8 -c src/_portaudiomodule.c -o build/temp.linux-x86_64-3.8/src/_portaudiomodule.o src/_portaudiomodule.c:29:10: fatal error: portaudio.h: Böyle bir dosya ya da dizin yok 29 | #include «portaudio.h» | ^
Не удается установить PyAudio 0.2.11 в Ubuntu 16.04
Я скачал tar-файл PyAudio 0.2.11 с https://pypi.python.org/pypi/PyAudio и выполните следующую команду:
И я получаю следующую ошибку:
Как я могу установить его успешно?
Я даже попробовал это «git clone https://people.csail.mit.edu /hubert/git/pyaudio.git «, но во время компиляции выдает следующую ошибку:
Для компиляции я использовал эту команду: sudo python3 setup.py install
7 ответов
Python Первое требование к программному обеспечению — это Python 2.6, 2.7 или Python 3.3+. Это необходимо для использования библиотеки.
PyAudio (для пользователей микрофона) PyAudio требуется тогда и только тогда, когда вы хотите использовать микрофонный вход (микрофон). Требуется PyAudio версии 0.2.11+, так как более ранние версии имели известные ошибки управления памятью при записи с микрофонов в определенных ситуациях.
Если он не установлен, все в библиотеке все равно будет работать, кроме попытки создания экземпляра объекта Microphone вызовет ошибку AttributeError.
Инструкции по установке на веб-сайте PyAudio довольно хороши — для удобства они приведены ниже:
В Windows установите PyAudio с помощью Pip: execute pip install pyaudio в терминале.
В производных от Debian дистрибутивах Linux (таких как Ubuntu и Mint) установите PyAudio с помощью APT: execute sudo apt-get install python-pyaudio python3-pyaudio в терминале. Если версия в репозиториях слишком старая, установите последнюю версию с помощью Pip: execute sudo apt-get install portaudio19-dev python-all-dev python3-all-dev && sudo pip install pyaudio (замените pip на pip3 , если используете Python 3).
В OS X установите PortAudio, используя Homebrew: brew install portaudio . Затем установите PyAudio с помощью Pip: pip install pyaudio .
В других системах, основанных на POSIX, установите пакеты portaudio19-dev и python-all-dev (или python3-all-dev при использовании Python 3) (или их ближайших эквивалентов) с помощью выбранного вами менеджера пакетов, а затем установите PyAudio с помощью Пип: pip install pyaudio (замените pip на pip3 при использовании Python 3).
Для удобства включены пакеты колеса PyAudio для распространенных 64-битных версий Python для Windows и Linux, в каталоге сторонних производителей / в корне хранилища. Для установки просто запустите pip install wheel , а затем pip install ./third-party/WHEEL_FILENAME (замените pip на pip3 при использовании Python 3) в корневом каталоге репозитория.
Источник
PyAudio
PyAudio provides Python bindings for PortAudio, the cross-platform audio I/O library. With PyAudio, you can easily use Python to play and record audio on a variety of platforms, such as GNU/Linux, Microsoft Windows, and Apple Mac OS X / macOS.
PyAudio is inspired by:
- pyPortAudio/fastaudio: Python bindings for PortAudio v18 API.
- tkSnack: cross-platform sound toolkit for Tcl/Tk and Python.
What’s new
March 18, 2017
Many thanks to both Blaise Potard and Matthias Schaff for discovering the issue and for their patches! Thanks as well to Timothy Port for helping to correct a docstring.
January 16, 2017
Great thanks to Michael Graczyk for discovering the GIL-related issues and for submitting a patch!
October 19, 2015
October 18, 2015
Many thanks to Tony Jacobson for discovering and helping with the overflow error. Thanks also to Sami Liedes for reporting the IOError exception issue!
April 12, 2014
Many thanks to Jason Roehm for discovering and patching the threading-related issue!
January 30, 2014
October 27, 2012
Thanks again to Bastian Bechtold for his help converting the documentation for use with Sphinx! In addition, thanks to John K. Luebs for the callback fix.
October 14, 2012
Many thanks to Bastian Bechtold and Bob Jamison for their contributions! Without their patches and Bastian’s careful review, this release would still be far away. Also, great thanks to Danilo J. S. Bellini for reporting bugs.
Note: As of this update, PyAudio is compatible with Python 2.6, Python 2.7, and Python 3.2. For Python installations older than 2.6, use PyAudio 0.2.4.
August 22, 2012
April 20, 2012
March 7, 2012
December 7, 2010
November 2, 2010
October 12, 2010
November 2, 2008
March 5, 2008
Installation
The current version is PyAudio v0.2.11. Install PyAudio using pip on most platforms. For versions prior to v0.2.9, PyAudio distributed installation binaries, which are archived here.
Notes:
- If pip is not already bundled with your installation of Python, get it here.
- pip will fetch and install PyAudio wheels (prepackaged binaries). Currently, there are wheels compatible with the official distributions of Python 2.7, 3.4, 3.5, and 3.6. For those versions, both 32-bit and 64-bit wheels are available.
- These binaries include PortAudio v19 v190600_20161030, built with MinGW. They support only the Windows MME API and do not include support for DirectX, ASIO, etc. If you require support for APIs not included, you will need to compile PortAudio and PyAudio.
Use Homebrew to install the prerequisite portaudio library, then install PyAudio using pip:
brew install portaudio
pip install pyaudio
Notes:
- If not already installed, download Homebrew.
- pip will download the PyAudio source and build it for your version of Python.
- Homebrew and building PyAudio also require installing the Command Line Tools for Xcode (more information).
Use the package manager to install PyAudio:
sudo apt-get install python-pyaudio python3-pyaudio
If the latest version of PyAudio is not available, install it using pip:
Notes:
- pip will download the PyAudio source and build it for your system. Be sure to install the portaudio library development package ( portaudio19-dev ) and the python development package ( python-all-dev ) beforehand.
- For better isolation from system packages, consider installing PyAudio in a virtualenv.
Source is available for download at the Python Package Index (PyPI): pypi.python.org/pypi/PyAudio.
Or clone the git repository:
To build PyAudio from source, you will also need to build PortAudio v19. See compilation hints for some instructions on building PyAudio for various platforms. To build PyAudio using Microsoft Visual Studio, check out Sebastian Audet’s instructions.
Documentation & Examples
The PyAudio source distribution contains a set of demos. Here’s a selection from that set:
License
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the «Software»), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED «AS IS», WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Acknowledgements
The development of PyAudio was funded in part by the Cambridge-MIT Institute and T-Party.
Many thanks to Andrew Baldwin, Alex ThreeD, Timothée Lecomte, Frank Samuelson, Matthieu Brucher, Chris Stawarz, Barry Walker, Bob Jamison, Danilo J. S. Bellini, Bastian Bechtold, Christoph Gohlke, Sebastian Audet, Jason Roehm, Tony Jacobson, Sami Liedes, Michael Graczyk, Blaise Potard, Matthias Schaff, and Timothy Port for their much appreciated suggestions and patches—as well as to others who have written to say hello!
Special thanks to Felipe Sateler and Justin Mazzola Paluska for Debian/Ubuntu packaging help.
Источник
Cannot install PyAudio 0.2.11 in ubuntu 16.04
I downloaded PyAudio 0.2.11 tar file from https://pypi.python.org/pypi/PyAudio and run the following command:
and I get the following error:
How can I get it install successfully?
I even tried this «git clone https://people.csail.mit.edu/hubert/git/pyaudio.git» but at the time of compilation it shows the following error:
To compile I used this command: sudo python3 setup.py install
8 Answers 8
Python The first software requirement is Python 2.6, 2.7, or Python 3.3+. This is required to use the library.
PyAudio (for microphone users) PyAudio is required if and only if you want to use microphone input (Microphone). PyAudio version 0.2.11+ is required, as earlier versions have known memory management bugs when recording from microphones in certain situations.
If not installed, everything in the library will still work, except attempting to instantiate a Microphone object will raise an AttributeError.
The installation instructions on the PyAudio website are quite good — for convenience, they are summarized below:
On Windows, install PyAudio using Pip: execute pip install pyaudio in a terminal.
On Debian-derived Linux distributions (like Ubuntu and Mint), install PyAudio using APT: execute sudo apt-get install python-pyaudio python3-pyaudio in a terminal. If the version in the repositories is too old, install the latest release using Pip: execute sudo apt-get install portaudio19-dev python-all-dev python3-all-dev && sudo pip install pyaudio (replace pip with pip3 if using Python 3).
On OS X, install PortAudio using Homebrew: brew install portaudio . Then, install PyAudio using Pip: pip install pyaudio .
On other POSIX-based systems, install the portaudio19-dev and python-all-dev (or python3-all-dev if using Python 3) packages (or their closest equivalents) using a package manager of your choice, and then install PyAudio using Pip: pip install pyaudio (replace pip with pip3 if using Python 3).
PyAudio wheel packages for common 64-bit Python versions on Windows and Linux are included for convenience, under the third-party/ directory in the repository root. To install, simply run pip install wheel followed by pip install ./third-party/WHEEL_FILENAME (replace pip with pip3 if using Python 3) in the repository root directory.
Источник
diegopacheco / pyaudio-ubuntu-install.md
This comment has been minimized.
Copy link Quote reply
said026 commented Oct 12, 2017
This comment has been minimized.
Copy link Quote reply
BenjaminThomas1999 commented Dec 19, 2017
This comment has been minimized.
Copy link Quote reply
zkneupper commented Dec 22, 2017 •
I had to split the last command into two lines to get it working:
This comment has been minimized.
Copy link Quote reply
maruschin commented Jan 25, 2018
This comment has been minimized.
Copy link Quote reply
abilakim commented Jan 26, 2018
Thanks Diego and also thanks zkneupper i had the same problem.
This comment has been minimized.
Copy link Quote reply
ultimate809 commented Feb 11, 2018
This comment has been minimized.
Copy link Quote reply
sunidhi20 commented Oct 18, 2018
Thanks !But what are these commands ?What is libasound-dev?
This comment has been minimized.
Copy link Quote reply
denniel-sadian commented Dec 15, 2018
This comment has been minimized.
Copy link Quote reply
maelfosso commented Mar 3, 2019
This comment has been minimized.
Copy link Quote reply
ghost commented Apr 15, 2019
Worked for me on Ubuntu 17.10 🙂
This comment has been minimized.
Copy link Quote reply
pks9862728888 commented May 25, 2019
pip install PyAudio
pip3 install PyAudio
python -m pip install PyAudio
python -m pip3 install PyAudio
This comment has been minimized.
Copy link Quote reply
sofianeMdjk commented Jun 9, 2019
Works great, thanks a lot Diego
This comment has been minimized.
Copy link Quote reply
SantiagoLopezDeharo commented Jul 18, 2019
Thanks for this, I couldnt install it in the traditional but this worked just fine, and i have the 19.04 version.
This comment has been minimized.
Copy link Quote reply
NarasimmanSaravana1994 commented Sep 3, 2019
Please build and install the PortAudio Python bindings first.
I’m facing this issue
python version is 3.6
This comment has been minimized.
Copy link Quote reply
rijusougata13 commented Jan 12, 2020
i have python 3.6.9 64 bit and ubuntu 16. i cant install pyaudio .can you help me?
This comment has been minimized.
Copy link Quote reply
BigCarrot1 commented Jan 14, 2020
does it works under windows 10 too ?
This comment has been minimized.
Copy link Quote reply
basit26374 commented Feb 23, 2020
thanks it works
This comment has been minimized.
Copy link Quote reply
rohanishervin commented Mar 11, 2020
Saved my time. thanks!
This comment has been minimized.
Copy link Quote reply
jabha400bc commented Mar 16, 2020
Thanks a lot. Worked for me.
This comment has been minimized.
Copy link Quote reply
techsci81 commented Mar 21, 2020
i have python 3.6.9 64 bit and ubuntu 16. i cant install pyaudio .can you help me?
sudo apt-get install libasound-dev portaudio19-dev libportaudio2 libportaudiocpp0
sudo apt-get install ffmpeg libav-tools
pip install pyaudio
these commands worked.
but still I am facing issues. after I run the file:
n [1]: runfile(‘/home/sv/Desktop/ai/sr.py’, wdir=’/home/sv/Desktop/ai’)
ALSA lib pcm.c:2266:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.rear
ALSA lib pcm.c:2266:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.center_lfe
ALSA lib pcm.c:2266:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.side
ALSA lib pcm_route.c:867:(find_matching_chmap) Found no matching channel map
ALSA lib pcm_route.c:867:(find_matching_chmap) Found no matching channel map
ALSA lib pcm_route.c:867:(find_matching_chmap) Found no matching channel map
ALSA lib pcm_route.c:867:(find_matching_chmap) Found no matching channel map
This comment has been minimized.
Copy link Quote reply
harishcoder-dev commented Apr 20, 2020
you are my hero!
This comment has been minimized.
Copy link Quote reply
louisroby commented Apr 20, 2020 •
I succeeded using:
sudo apt-get install libasound-dev portaudio19-dev libportaudio2 libportaudiocpp0
sudo apt-get install ffmpeg
sudo apt-get install python-pyaudio
sudo apt-get install python3-pyaudio
This comment has been minimized.
Copy link Quote reply
findtharun commented May 23, 2020 •
While Implementing This ( btw I am using Ubuntu)
I am getting error as
Please build and install the PortAudio Python bindings first.
An exception has occurred, use %tb to see the full traceback.
This comment has been minimized.
Copy link Quote reply
IYERADavid commented Jun 11, 2020
thanks diego it work quickly
This comment has been minimized.
Copy link Quote reply
Otumian-empire commented Dec 25, 2020 •
The above worked without libav-tools for the installation of the dependencies.
This is the error message
Now I get this error when I run the python file with the code below:
The message in the exception is not displayed unit I hit ctrl+c
This comment has been minimized.
Copy link Quote reply
2shweet commented Jan 11, 2021
does it works under windows 10 too ?
To install on windows you need pipwin so it’s
Pip or pip3 install pipwin
Then
Pipwin install pyaudio
This comment has been minimized.
Copy link Quote reply
CodeWithAlvin commented Feb 27, 2021
This comment has been minimized.
Copy link Quote reply
Gianlucca-git commented Apr 20, 2021
This comment has been minimized.
Copy link Quote reply
SukruGokk commented Apr 26, 2021
`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: ‘/home/sukru/Masaüstü/YAZILIM/PYTHON/voiceAssistant/bin/python3’ -u -c ‘import sys, setuptools, tokenize; sys.argv[0] = ‘»‘»‘/tmp/pip-install-ffwcbpr2/PyAudio/setup.py'»‘»‘; file='»‘»‘/tmp/pip-install-ffwcbpr2/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-11kifqpj
cwd: /tmp/pip-install-ffwcbpr2/PyAudio/
Complete output (6 lines):
usage: setup.py [global_opts] cmd1 [cmd1_opts] [cmd2 [cmd2_opts] . ]
or: setup.py —help [cmd1 cmd2 . ]
or: setup.py —help-commands
or: setup.py cmd —help
error: invalid command ‘bdist_wheel’
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: ‘/home/sukru/Masaüstü/YAZILIM/PYTHON/voiceAssistant/bin/python3’ -u -c ‘import sys, setuptools, tokenize; sys.argv[0] = ‘»‘»‘/tmp/pip-install-ffwcbpr2/PyAudio/setup.py'»‘»‘; file='»‘»‘/tmp/pip-install-ffwcbpr2/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-096oscdf/install-record.txt —single-version-externally-managed —compile —install-headers ‘/home/sukru/Masaüstü/YAZILIM/PYTHON/voiceAssistant/include/site/python3.8/PyAudio’
cwd: /tmp/pip-install-ffwcbpr2/PyAudio/
Complete output (16 lines):
running install
running build
running build_py
creating build
creating build/lib.linux-x86_64-3.8
copying src/pyaudio.py -> build/lib.linux-x86_64-3.8
running build_ext
building ‘_portaudio’ extension
creating build/temp.linux-x86_64-3.8
creating build/temp.linux-x86_64-3.8/src
x86_64-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/home/sukru/Masaüstü/YAZILIM/PYTHON/voiceAssistant/include -I/usr/include/python3.8 -c src/_portaudiomodule.c -o build/temp.linux-x86_64-3.8/src/_portaudiomodule.o
src/_portaudiomodule.c:29:10: fatal error: portaudio.h: Böyle bir dosya ya da dizin yok
29 | #include «portaudio.h»
| ^
compilation terminated.
error: command ‘x86_64-linux-gnu-gcc’ failed with exit status 1
—————————————-
ERROR: Command errored out with exit status 1: ‘/home/sukru/Masaüstü/YAZILIM/PYTHON/voiceAssistant/bin/python3’ -u -c ‘import sys, setuptools, tokenize; sys.argv[0] = ‘»‘»‘/tmp/pip-install-ffwcbpr2/PyAudio/setup.py'»‘»‘; file='»‘»‘/tmp/pip-install-ffwcbpr2/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-096oscdf/install-record.txt —single-version-externally-managed —compile —install-headers ‘/home/sukru/Masaüstü/YAZILIM/PYTHON/voiceAssistant/include/site/python3.8/PyAudio’ Check the logs for full command output`
This comment has been minimized.
Copy link Quote reply
ZhymabekRoman commented Apr 30, 2021
`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: ‘/home/sukru/Masaüstü/YAZILIM/PYTHON/voiceAssistant/bin/python3’ -u -c ‘import sys, setuptools, tokenize; sys.argv[0] = ‘»‘»‘/tmp/pip-install-ffwcbpr2/PyAudio/setup.py'»‘»‘; file='»‘»‘/tmp/pip-install-ffwcbpr2/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-11kifqpj
cwd: /tmp/pip-install-ffwcbpr2/PyAudio/
Complete output (6 lines):
usage: setup.py [global_opts] cmd1 [cmd1_opts] [cmd2 [cmd2_opts] . ]
or: setup.py —help [cmd1 cmd2 . ]
or: setup.py —help-commands
or: setup.py cmd —help
error: invalid command ‘bdist_wheel’
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: ‘/home/sukru/Masaüstü/YAZILIM/PYTHON/voiceAssistant/bin/python3’ -u -c ‘import sys, setuptools, tokenize; sys.argv[0] = ‘»‘»‘/tmp/pip-install-ffwcbpr2/PyAudio/setup.py'»‘»‘; file='»‘»‘/tmp/pip-install-ffwcbpr2/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-096oscdf/install-record.txt —single-version-externally-managed —compile —install-headers ‘/home/sukru/Masaüstü/YAZILIM/PYTHON/voiceAssistant/include/site/python3.8/PyAudio’
cwd: /tmp/pip-install-ffwcbpr2/PyAudio/
Complete output (16 lines):
running install
running build
running build_py
creating build
creating build/lib.linux-x86_64-3.8
copying src/pyaudio.py -> build/lib.linux-x86_64-3.8
running build_ext
building ‘_portaudio’ extension
creating build/temp.linux-x86_64-3.8
creating build/temp.linux-x86_64-3.8/src
x86_64-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/home/sukru/Masaüstü/YAZILIM/PYTHON/voiceAssistant/include -I/usr/include/python3.8 -c src/_portaudiomodule.c -o build/temp.linux-x86_64-3.8/src/_portaudiomodule.o
src/_portaudiomodule.c:29:10: fatal error: portaudio.h: Böyle bir dosya ya da dizin yok
29 | #include «portaudio.h»
| ^
compilation terminated.
error: command ‘x86_64-linux-gnu-gcc’ failed with exit status 1
Источник