H
H
Herman Coffman2020-11-27 18:54:05
pip
Herman Coffman, 2020-11-27 18:54:05

Why isn't the PyAudio library installed?

Hello!
I’ll say right away that I tried:
1. pip install PyAudio
2. winpip install PyAudio
3. Install the library in PyCharm itself

When installing in PyCharm, I write the following error:

Collecting PyAudio
Using cached PyAudio-0.2.11.tar.gz (37 kB)
Using legacy 'setup.py install' for PyAudio, since package 'wheel' is not installed.
Installing collected packages: PyAudio
Running setup.py install for PyAudio: started
Running setup.py install for PyAudio: finished with status 'error'

DEPRECATION: The -b/--build/--build-dir/--build-directory option is deprecated. pip 20.3 will remove support for this functionality. A possible replacement is use the TMPDIR/TEMP/TMP environment variable, possibly combined with --no-clean. You can find discussion regarding this at https://github.com/pypa/pip/issues/8333 .
ERROR: Command errored out with exit status 1:
command: 'C:\Users\Jakov\PycharmProjects\Gera\venv\Scripts\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\Jakov\\AppData\\Local\\Temp\\pycharm-packaging\\pyaudio\\setup.py'"'"'; __file__='"'"'C:\\Users\\Jakov\\AppData\\Local\\Temp\\pycharm-packaging\\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 'C:\Users\Jakov\AppData\Local\ temp\pip-record-7xrt9j1_\install-record.txt'
running install
running build
running build_py
creating build
creating build\lib.win32-3.9
copying src\pyaudio.py -> build\lib.win32-3.9
warning: build_py: byte-compiling is disabled, skipping.

running build_ext
building '_portaudio' extension
creating build\temp.win32-3.9
creating build\temp.win32-3.9\Release
creating build\temp.win32-3.9\Release\src
C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.16.27023\bin\HostX86\x86\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -IC:\Users\Jacob\PycharmProjects\Gera\venv\include -IC:\Users\Jacob\AppData\Local\Programs\Python\Python39-32\include -IC:\Users\Jacob\AppData\Local\Programs\ Python\Python39-32\include -IC:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.16.27023\include /Tcsrc/_portaudiomodule.c /Fobuild\temp.win32-3.9 \Release\src/_portaudiomodule.obj
_portaudiomodule.c
src/_portaudiomodule.c(27): fatal error C1083: No such file or directory,
error: command 'C:\\Program Files (x86)\\Microsoft Visual Studio\\2017\\Community\\VC\\Tools\\MSVC\\14.16.27023\\bin\\HostX86\\x86\\cl .exe' failed with exit code 2
----------------------------------------
ERROR: Command errored out with exit status 1: 'C:\Users\Jakov\PycharmProjects\Gera\venv\Scripts\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\Jakov\\AppData\\Local\\Temp\\pycharm-packaging\\pyaudio\\setup.py'"'"'; __file__='"'"'C:\\Users\\Jakov\\AppData\\Local\\Temp\\pycharm-packaging\\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 'C:


I also tried many other pip commands but nothing worked! Tell me how to fix it?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Sergey Karbivnichy, 2020-11-27
@hottabxp

Demolish Python 3.9 and install one of the following - 3.4, 3.5, 3.6
Or install from source.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question