Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

query

11 views
Skip to first unread message

Shashwat Pandey

unread,
Sep 19, 2021, 1:19:05 PM9/19/21
to
---------- Forwarded message ---------
From: <python-l...@python.org>
Date: Sun, Sep 19, 2021, 13:20
Subject: query
To: <shashwatp...@gmail.com>


Hello! I see you want to post a message to the Python List. We would
be happy to help, but you must subscribe first:

https://mail.python.org/mailman/listinfo/python-list

After you have subscribed, please send your message to
pytho...@python.org again. Please do not include images as this is
a text-only forum -- instead, copy/paste or transcribe the information
from the image that you want us to know.

Alternatively, this list is mirrored both ways with the
comp.lang.python newsgroup (news:comp.lang.python).

Some people find it easier to follow this and other lists via gmane
(http://news.gmane.org/gmane.comp.python.general), a service which
offers a newsgroup interface to many online mailing lists.

*NB all posts to the mailing list are publicly archived at:*

https://mail.python.org/pipermail/python-list





---------- Forwarded message ----------
From: Shashwat Pandey <shashwatp...@gmail.com>
To: pytho...@python.org
Cc:
Bcc:
Date: Sun, 19 Sep 2021 13:19:31 +0530
Subject: query
Hello,
One thing I want to ask...

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.

the error is given below please solve this problem


PS C:\Users\PRIYA> pip install pyaudio
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 ... error
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":
https://visualstudio.microsoft.com/visual-cpp-build-tools/
----------------------------------------
ERROR: Command errored out with exit status 1:
'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'
Check the logs for full command output.
WARNING: You are using pip version 21.2.3; however, version 21.2.4 is
available.
You should consider upgrading via the
'C:\Users\PRIYA\AppData\Local\Programs\Python\Python39-32\python.exe -m pip
install --upgrade pip' command.

Mats Wichmann

unread,
Sep 19, 2021, 1:48:16 PM9/19/21
to
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:
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.


MRAB

unread,
Sep 19, 2021, 1:57:39 PM9/19/21
to
> 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.
>
> the error is given below please solve this problem
>
>
> PS C:\Users\PRIYA> pip install pyaudio
> 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 ... error
> https://visualstudio.microsoft.com/visual-cpp-build-tools/
> ----------------------------------------
> ERROR: Command errored out with exit status 1:
> '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'
> Check the logs for full command output.
> WARNING: You are using pip version 21.2.3; however, version 21.2.4 is
> available.
> You should consider upgrading via the
> 'C:\Users\PRIYA\AppData\Local\Programs\Python\Python39-32\python.exe -m pip
> install --upgrade pip' command.
>
By default, pip looks for packages on PyPI.

Unfortunately, it looks like PyAudio is not available on PyPI for that
version of Python.

Fortunately, it _is_ available from Christoph Gohlke's site:

https://www.lfd.uci.edu/~gohlke/pythonlibs/#pyaudio

The one you want is:

PyAudio‑0.2.11‑cp39‑cp39‑win32.whl

Mark Lawrence

unread,
Sep 19, 2021, 1:58:19 PM9/19/21
to
The first port of call for a windows build https://www.lfd.uci.edu/~gohlke/pythonlibs/ if it's not available on pypi.
0 new messages