Pip install PyAudio fails on windows [duplicate] - python

This question already has answers here:
I can't install pyaudio on Windows? How to solve "error: Microsoft Visual C++ 14.0 is required."?
(17 answers)
Closed 2 years ago.
While I was making a Virtual Assistant, the code editor said a module named PyAudio is required. So, I opened the terminal and typed ...pip install PyAudio...
and it showed me:
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: 'c:\users\agniva roy\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\Agniva Roy\\AppData\\Local\\Temp\\pip-install-xo7mfu1k\\pyaudio\\setup.py'"'"'; __file__='"'"'C:\\Users\\Agniva Roy\\AppData\\Local\\Temp\\pip-install-xo7mfu1k\\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 'C:\Users\Agniva Roy\AppData\Local\Temp\pip-wheel-uf1qmafg'
cwd: C:\Users\Agniva Roy\AppData\Local\Temp\pip-install-xo7mfu1k\pyaudio\
Complete output (9 lines):
running bdist_wheel
running build
running build_py
creating build
creating build\lib.win-amd64-3.8
copying src\pyaudio.py -> build\lib.win-amd64-3.8
running build_ext
building '_portaudio' extension
error: Microsoft Visual C++ 14.0 is required. Get it with "Build Tools for Visual Studio": https://visualstudio.microsoft.com/downloads/
----------------------------------------
ERROR: Failed building wheel for PyAudio
Running setup.py clean for PyAudio
Failed to build PyAudio
DEPRECATION: Could not build wheels for PyAudio which do not use PEP 517. pip will fall back to legacy 'setup.py install' for these. pip 21.0 will remove support for this functionality. A possible replacement is to fix the wheel build issue reported above. You can find discussion regarding this at https://github.com/pypa/pip/issues/8368.
Installing collected packages: PyAudio
Running setup.py install for PyAudio ... error
ERROR: Command errored out with exit status 1:
command: 'c:\users\agniva roy\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\Agniva Roy\\AppData\\Local\\Temp\\pip-install-xo7mfu1k\\pyaudio\\setup.py'"'"'; __file__='"'"'C:\\Users\\Agniva Roy\\AppData\\Local\\Temp\\pip-install-xo7mfu1k\\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\Agniva Roy\AppData\Local\Temp\pip-record-0q8d47m5\install-record.txt' --single-version-externally-managed --compile --install-headers 'c:\users\agniva roy\Include\PyAudio'
cwd: C:\Users\Agniva Roy\AppData\Local\Temp\pip-install-xo7mfu1k\pyaudio\
Complete output (9 lines):
running install
running build
running build_py
creating build
creating build\lib.win-amd64-3.8
copying src\pyaudio.py -> build\lib.win-amd64-3.8
running build_ext
building '_portaudio' extension
error: Microsoft Visual C++ 14.0 is required. Get it with "Build Tools for Visual Studio": https://visualstudio.microsoft.com/downloads/
----------------------------------------
ERROR: Command errored out with exit status 1: 'c:\users\agniva roy\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\Agniva Roy\\AppData\\Local\\Temp\\pip-install-xo7mfu1k\\pyaudio\\setup.py'"'"'; __file__='"'"'C:\\Users\\Agniva Roy\\AppData\\Local\\Temp\\pip-install-xo7mfu1k\\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\Agniva Roy\AppData\Local\Temp\pip-record-0q8d47m5\install-record.txt' --single-version-externally-managed --compile --install-headers 'c:\users\agniva roy\Include\PyAudio' Check the logs for full command output.
Please help me out. I have even tried installing pre-build the pyaudio wheels but it doesn't work either.

you already have the answer in your description
error: Microsoft Visual C++ 14.0 is required. Get it with "Build Tools for Visual Studio": https://visualstudio.microsoft.com/downloads/
Download Microsoft c++ dependencies from Microsoft website
and redo the build

Related

I have PyAudio installed on my windows for sure, but when I try to install into Pycharm I get this message?

THIS IS NOT CODE - ( I have read everything on google, I have the latest version of pip, python, pycharm,
I have Installed Microsoft visual studios C++, pip install pipwin then
pipwin install pyaudio - all of these installed well with no errors - it's just my Pycharm that doesn't accept the package for some reason. any ideas?
This is the error message in the Pycharm 'Available Packages'
Collecting PyAudio
Using cached PyAudio-0.2.11.tar.gz (37 kB)
Building wheels for collected packages: PyAudio
Building wheel for PyAudio (setup.py): started
Building wheel for PyAudio (setup.py): finished with status 'error'
Running setup.py clean for PyAudio
Failed to build PyAudio
Installing collected packages: PyAudio
Running setup.py install for PyAudio: started
Running setup.py install for PyAudio: finished with status 'error'
ERROR: Command errored out with exit status 1:
command: 'C:\Users\joe_h\AppData\Local\Programs\Python\Python39\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\joe_h\\AppData\\Local\\Temp\\pip-install-j2z8zhnm\\pyaudio_4cd919902d73421787fec2034b1272c2\\setup.py'"'"'; __file__='"'"'C:\\Users\\joe_h\\AppData\\Local\\Temp\\pip-install-j2z8zhnm\\pyaudio_4cd919902d73421787fec2034b1272c2\\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 'C:\Users\joe_h\AppData\Local\Temp\pip-wheel-7444zi78'
cwd: C:\Users\joe_h\AppData\Local\Temp\pip-install-j2z8zhnm\pyaudio_4cd919902d73421787fec2034b1272c2\
Complete output (11 lines):
running bdist_wheel
running build
running build_py
creating build
creating build\lib.win-amd64-3.9
copying src\pyaudio.py -> build\lib.win-amd64-3.9
warning: build_py: byte-compiling is disabled, skipping.
running build_ext
building '_portaudio' extension
error: Microsoft Visual C++ 14.0 is required. Get it with "Build Tools for Visual Studio": https://visualstudio.microsoft.com/downloads/
----------------------------------------
ERROR: Failed building wheel for PyAudio
ERROR: Command errored out with exit status 1:
command: 'C:\Users\joe_h\AppData\Local\Programs\Python\Python39\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\joe_h\\AppData\\Local\\Temp\\pip-install-j2z8zhnm\\pyaudio_4cd919902d73421787fec2034b1272c2\\setup.py'"'"'; __file__='"'"'C:\\Users\\joe_h\\AppData\\Local\\Temp\\pip-install-j2z8zhnm\\pyaudio_4cd919902d73421787fec2034b1272c2\\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\joe_h\AppData\Local\Temp\pip-record-4nk7pxtt\install-record.txt' --single-version-externally-managed --user --prefix= --compile --install-headers 'C:\Users\joe_h\AppData\Roaming\Python\Python39\Include\PyAudio'
cwd: C:\Users\joe_h\AppData\Local\Temp\pip-install-j2z8zhnm\pyaudio_4cd919902d73421787fec2034b1272c2\
Complete output (11 lines):
running install
running build
running build_py
creating build
creating build\lib.win-amd64-3.9
copying src\pyaudio.py -> build\lib.win-amd64-3.9
warning: build_py: byte-compiling is disabled, skipping.
running build_ext
building '_portaudio' extension
error: Microsoft Visual C++ 14.0 is required. Get it with "Build Tools for Visual Studio": https://visualstudio.microsoft.com/downloads/
----------------------------------------
ERROR: Command errored out with exit status 1: 'C:\Users\joe_h\AppData\Local\Programs\Python\Python39\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\joe_h\\AppData\\Local\\Temp\\pip-install-j2z8zhnm\\pyaudio_4cd919902d73421787fec2034b1272c2\\setup.py'"'"'; __file__='"'"'C:\\Users\\joe_h\\AppData\\Local\\Temp\\pip-install-j2z8zhnm\\pyaudio_4cd919902d73421787fec2034b1272c2\\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\joe_h\AppData\Local\Temp\pip-record-4nk7pxtt\install-record.txt' --single-version-externally-managed --user --prefix= --compile --install-headers 'C:\Users\joe_h\AppData\Roaming\Python\Python39\Include\PyAudio' Check the logs for full command output.
PyAudio doesn't have wheels (prebuilt packages) for Python 3.7+ on Windows, PyAudio is supported by Python 2.7, 3.4, 3.5, and 3.6
If you have anaconda you can run conda install pyaudio instead and that should work.

Why is my pip install not installing netifaces [duplicate]

This question already has answers here:
How to solve "error: Microsoft Visual C++ 14.0 or greater is required" when installing Python packages?
(9 answers)
Pip error even Microsoft Visual C++ 14.0 is installed
(4 answers)
Error while installing lxml through pip: Microsoft Visual C++ 14.0 is required
(8 answers)
Closed 2 years ago.
I am working with python 3.8.6 but for some reason it cant build a wheel for netifaces
error:
C:\Users\cuerv>pip install --upgrade netifaces
Collecting netifaces
Using cached netifaces-0.10.9.tar.gz (28 kB)
Building wheels for collected packages: netifaces
Building wheel for netifaces (setup.py) ... error
ERROR: Command errored out with exit status 1:
command: 'c:\users\cuerv\downloads\my code\imports\python 3.8.6\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\Users\cuerv\AppData\Local\Temp\pip-install-femvpx3w\netifaces_673ef3fc78424548962ff6e3f9ac8b17\setup.py'"'"'; file='"'"'C:\Users\cuerv\AppData\Local\Temp\pip-install-femvpx3w\netifaces_673ef3fc78424548962ff6e3f9ac8b17\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 'C:\Users\cuerv\AppData\Local\Temp\pip-wheel-qxm_uil5'
cwd: C:\Users\cuerv\AppData\Local\Temp\pip-install-femvpx3w\netifaces_673ef3fc78424548962ff6e3f9ac8b17
Complete output (5 lines):
running bdist_wheel
running build
running build_ext
building 'netifaces' extension
error: Microsoft Visual C++ 14.0 is required. Get it with "Build Tools for Visual Studio": https://visualstudio.microsoft.com/downloads/
ERROR: Failed building wheel for netifaces
Running setup.py clean for netifaces
Failed to build netifaces
Installing collected packages: netifaces
Running setup.py install for netifaces ... error
ERROR: Command errored out with exit status 1:
command: 'c:\users\cuerv\downloads\my code\imports\python 3.8.6\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\Users\cuerv\AppData\Local\Temp\pip-install-femvpx3w\netifaces_673ef3fc78424548962ff6e3f9ac8b17\setup.py'"'"'; file='"'"'C:\Users\cuerv\AppData\Local\Temp\pip-install-femvpx3w\netifaces_673ef3fc78424548962ff6e3f9ac8b17\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\cuerv\AppData\Local\Temp\pip-record-b4lmtpzg\install-record.txt' --single-version-externally-managed --compile --install-headers 'c:\users\cuerv\downloads\my code\imports\python 3.8.6\Include\netifaces'
cwd: C:\Users\cuerv\AppData\Local\Temp\pip-install-femvpx3w\netifaces_673ef3fc78424548962ff6e3f9ac8b17
Complete output (5 lines):
running install
running build
running build_ext
building 'netifaces' extension
error: Microsoft Visual C++ 14.0 is required. Get it with "Build Tools for Visual Studio": https://visualstudio.microsoft.com/downloads/
----------------------------------------
ERROR: Command errored out with exit status 1: 'c:\users\cuerv\downloads\my code\imports\python 3.8.6\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\Users\cuerv\AppData\Local\Temp\pip-install-femvpx3w\netifaces_673ef3fc78424548962ff6e3f9ac8b17\setup.py'"'"'; file='"'"'C:\Users\cuerv\AppData\Local\Temp\pip-install-femvpx3w\netifaces_673ef3fc78424548962ff6e3f9ac8b17\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\cuerv\AppData\Local\Temp\pip-record-b4lmtpzg\install-record.txt' --single-version-externally-managed --compile --install-headers 'c:\users\cuerv\downloads\my code\imports\python 3.8.6\Include\netifaces' Check the logs for full command output.
The relevant line is this:
Complete output (5 lines):
running install running build running build_ext building 'netifaces' extension error: Microsoft Visual C++ 14.0 is required.
Get it with "Build Tools for Visual Studio": https://visualstudio.microsoft.com/downloads/
It is telling you that to complete the install you need to go get the tools it mentions and install them. The package is trying to run a compile during install and it needs those tools

I am using python 3.9 and I can't figure out how to install pyaudio in my Windows 10

Currently using Visual Studio Code
Tried using pip install pyaudio but it simply gave an error like:
PS C:\Users\NIKHIL> pip install pyaudio
Defaulting to user installation because normal site-packages is
not writeable
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: 'c:\program files\python39\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\NIKHIL\\AppData\\Local\\Temp\\pip-install-yo0mmwlt\\pyaudio_d4ca14ee2a5246debede93cab086f909\\setup.py'"'"'; __file__='"'"'C:\\Users\\NIKHIL\\AppData\\Local\\Temp\\pip-install-yo0mmwlt\\pyaudio_d4ca14ee2a5246debede93cab086f909\\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 'C:\Users\NIKHIL\AppData\Local\Temp\pip-wheel-cbxwzcr9'
cwd: C:\Users\NIKHIL\AppData\Local\Temp\pip-install-yo0mmwlt\pyaudio_d4ca14ee2a5246debede93cab086f909\
Complete output (9 lines):
running bdist_wheel
running build
running build_py
creating build
creating build\lib.win-amd64-3.9
copying src\pyaudio.py -> build\lib.win-amd64-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: 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: 'c:\program files\python39\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\NIKHIL\\AppData\\Local\\Temp\\pip-install-yo0mmwlt\\pyaudio_d4ca14ee2a5246debede93cab086f909\\setup.py'"'"'; __file__='"'"'C:\\Users\\NIKHIL\\AppData\\Local\\Temp\\pip-install-yo0mmwlt\\pyaudio_d4ca14ee2a5246debede93cab086f909\\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\NIKHIL\AppData\Local\Temp\pip-record-u900rrya\install-record.txt' --single-version-externally-managed --user --prefix= --compile --install-headers 'C:\Users\NIKHIL\AppData\Roaming\Python\Python39\Include\pyaudio'
cwd: C:\Users\NIKHIL\AppData\Local\Temp\pip-install-yo0mmwlt\pyaudio_d4ca14ee2a5246debede93cab086f909\
Complete output (9 lines):
running install
running build
running build_py
creating build
creating build\lib.win-amd64-3.9
copying src\pyaudio.py -> build\lib.win-amd64-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:\program files\python39\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\NIKHIL\\AppData\\Local\\Temp\\pip-install-yo0mmwlt\\pyaudio_d4ca14ee2a5246debede93cab086f909\\setup.py'"'"'; __file__='"'"'C:\\Users\\NIKHIL\\AppData\\Local\\Temp\\pip-install-yo0mmwlt\\pyaudio_d4ca14ee2a5246debede93cab086f909\\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\NIKHIL\AppData\Local\Temp\pip-record-u900rrya\install-record.txt' --single-version-externally-managed --user --prefix= --compile --install-headers 'C:\Users\NIKHIL\AppData\Roaming\Python\Python39\Include\pyaudio' Check the logs for full command
output.
please suggest a way out of this
You can also try to install it with the .whl file.
Find your Python version
64 or 32 bit?
Find the appropriate file here
For example, my Python version is the 3.9 64bit I would download the "PyAudio‑0.2.11‑cp39‑cp39‑win_amd64.whl" file.
Open your CMD and go to the folder where the file is. Ex.: cd C:\Users\Miguel\Downloads
Install it: pip install PyAudio‑0.2.11‑cp39‑cp39‑win_amd64.whl
Hope it helped!
This answer from a StackOverflow question might help, as I had the same problem and it solved the problem for me.
First run your IDE or CMD as Administrator and run the following:
pip install pipwin
pipwin install pyaudio
Try these commands below:
pip install pipwin
pipwin install pyaudio
Looking at the error message it seems you require Visual C++ build tools.
The link to download that is also given within that error message.
In case the link does not work,You can download it here: https://visualstudio.microsoft.com/visual-cpp-build-tools/
You can try this and incase errors still persist, reply to this thread.
Upvote if it helped!
PyAudio just doesn't have the wheels for Python 3.7 or higher. If you want to use PyAudio, it is best to download python version 3.6.9 here.
I wish you the best
-arivvid27
I tried with Python 3.9 and didn´t work, so I installed Python 3.8 too and pyaudio worked fine (I've double checked and downloaded both versions of pyaudio on https://www.lfd.uci.edu/~gohlke/pythonlibs/#pyaudio).
I still don't know why it doesn't work on 3.9.
Did it work for someone on python 3.9? If yes, let me know what did you do. Thanks!
you should use python 3.6.9 or lower

I got this error when I try to install the PyAudio module using 'pip install PyAudio'... What should I do now?

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:\python 3.8\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\Users\spogm\AppData\Local\Temp\pip-install-wul1u7y7\PyAudio\setup.py'"'"'; __
file__='"'"'C:\Users\spogm\AppData\Local\Temp\pip-install-wul1u7y7\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\spogm\AppData\Local\Temp\pip-record-m6e8jsq4\install-record.txt' --single-version-externally-
managed --compile --install-headers 'c:\python 3.8\Include\PyAudio'
cwd: C:\Users\spogm\AppData\Local\Temp\pip-install-wul1u7y7\PyAudio
Complete output (9 lines):
running install
running build
running build_py
creating build
creating build\lib.win32-3.8
copying src\pyaudio.py -> build\lib.win32-3.8
running build_ext
building '_portaudio' extension
error: Microsoft Visual C++ 14.0 is required. Get it with "Build Tools for Visual Studio": https://visualstudio.microsoft.com/downloads/
----------------------------------------
ERROR: Command errored out with exit status 1: 'c:\python 3.8\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\Users\spogm\AppData\Local\Temp\pip-install-wul
1u7y7\PyAudio\setup.py'"'"'; file='"'"'C:\Users\spogm\AppData\Local\Temp\pip-install-wul1u7y7\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\spogm\AppData\Local\Temp\pip-record-m6e8jsq4\install-record.
txt' --single-version-externally-managed --compile --install-headers 'c:\python 3.8\Include\PyAudio' Check the logs for full command output.
if you are using windows:
Go to: https://www.lfd.uci.edu/~gohlke/pythonlibs/#pyaudio
Download the file and then go to its directory in the cmd and type:
For win 32 bit:
pip install PyAudio‑0.2.11‑cp37‑cp37m‑win32.whl
For win 64 bit:
pip install PyAudio‑0.2.11‑cp38‑cp38‑win_amd64.whl

unable to install packages in pycharm

Defaulting to user installation because normal site-packages is not writeable
Collecting jsonlib
Using cached jsonlib-1.6.1.tar.gz (43 kB)
Could not build wheels for jsonlib, since package 'wheel' is not installed.
Installing collected packages: jsonlib
Running setup.py install for jsonlib ... error
ERROR: Command errored out with exit status 1:
command: 'c:\program files (x86)\python38-32\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\Shankhya13\\AppData\\Local\
\Temp\\pip-install-5t7gtx9m\\jsonlib\\setup.py'"'"'; __file__='"'"'C:\\Users\\Shankhya13\\AppData\\Local\\Temp\\pip-install-5t7gtx9m\\jsonlib\\setup.py'"'"';f=g
etattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' in
stall --record 'C:\Users\Shankhya13\AppData\Local\Temp\pip-record-y8xv3b4p\install-record.txt' --single-version-externally-managed --user --prefix= --compile --
install-headers 'C:\Users\Shankhya13\AppData\Roaming\Python\Python38\Include\jsonlib'
cwd: C:\Users\Shankhya13\AppData\Local\Temp\pip-install-5t7gtx9m\jsonlib\
Complete output (9 lines):
running install
running build
running build_py
creating build
creating build\lib.win32-3.8
copying jsonlib.py -> build\lib.win32-3.8
running build_ext
building '_jsonlib' extension
error: Microsoft Visual C++ 14.0 is required. Get it with "Build Tools for Visual Studio": https://visualstudio.microsoft.com/downloads/
----------------------------------------

Categories