On 9/19/21 06:42, Shashwat Pandey wrote:
How to Fix Installation Error of PyAudio in VS Code ( Windows 32 Bit ) ??
Please Answer Me....
It's very essential to complete my concept digitalization system project.
This comes up somewhat often - pyaudio has not released new binary
installer packages for some time. When the system you install on
doesn't find a matching binary package, it tries to build it from the
from source. This doesn't work if you don't have a compiler:
ERROR: Command errored out with exit status 1:
command:
'C:\Users\PRIYA\AppData\Local\Programs\Python\Python39-32\python.exe' -u -c
'import io, os, sys, setuptools, tokenize; sys.argv[0] =
'"'"'C:\\Users\\PRIYA\\AppData\\Local\\Temp\\pip-install-v8hphebk\\pyaudio_4240cdb9492c47abb6d002cdb32aa86c\\setup.py'"'"';
__file__='"'"'C:\\Users\\PRIYA\\AppData\\Local\\Temp\\pip-install-v8hphebk\\pyaudio_4240cdb9492c47abb6d002cdb32aa86c\\setup.py'"'"';f
= getattr(tokenize, '"'"'open'"'"', open)(__file__) if
os.path.exists(__file__) else io.StringIO('"'"'from setuptools import
setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"',
'"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))'
install --record
'C:\Users\PRIYA\AppData\Local\Temp\pip-record-bdr6wfd9\install-record.txt'
--single-version-externally-managed --compile --install-headers
'C:\Users\PRIYA\AppData\Local\Programs\Python\Python39-32\Include\pyaudio'
cwd:
C:\Users\PRIYA\AppData\Local\Temp\pip-install-v8hphebk\pyaudio_4240cdb9492c47abb6d002cdb32aa86c\
Complete output (9 lines):
running install
running build
running build_py
creating build
creating build\lib.win32-3.9
copying src\pyaudio.py -> build\lib.win32-3.9
running build_ext
building '_portaudio' extension
error: Microsoft Visual C++ 14.0 or greater is required. Get it with
"Microsoft C++ Build Tools":
quite honestly, even if you do install msvc on your Windows system, it
will probably still fail to build as there are usually some addditional
setup steps.
This kind of thing is fairly easy to prospect for - got to
https://pypi.org, search for your package, and when found, click on
Download Files and look at what's available. In the case of the
"official" pyaudio, there haven't been versions since Python 3.6.
In this case there's an alternate build you can download, if you look here:
https://pypi.org/project/pyaudio-wheels/
(in other words, instead of installing "pyaudio" try installing
"pyaudio-wheels"). Hopefully that will work out for you.
--
https://mail.python.org/mailman/listinfo/python-list