How to solve this error while installing pyaudio? - python

Complete output from command E:\python\project\audi\venv\Scripts\python.exe -u -c "import setuptools, tokenize;__file__='C:\\Users\\DEEPAK~1\\AppData\\Local\\Temp\\pip-install-vog_q_bd\\PyAudio\\setup.py';f=ge
tattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record C:\Users\DEEPAK~1\AppData\Local\Temp\pip-record-el4ifpw9\install-record
.txt --single-version-externally-managed --compile --install-headers E:\python\project\audi\venv\include\site\python3.7\PyAudio:
running install
running build
running build_py
creating build
creating build\lib.win-amd64-3.7
copying src\pyaudio.py -> build\lib.win-amd64-3.7
running build_ext
building '_portaudio' extension
error: Microsoft Visual C++ 14.0 is required. Get it with "Microsoft Visual C++ Build Tools": http://landinghub.visualstudio.com/visual-cpp-build-tools
----------------------------------------
Command "E:\python\project\audi\venv\Scripts\python.exe -u -c "import setuptools, tokenize;__file__='C:\\Users\\DEEPAK~1\\AppData\\Local\\Temp\\pip-install-vog_q_bd\\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\DEEPAK~1\AppData\Local\Temp\pip-record-el4ifpw9\install-record.txt --single-version-ex
ternally-managed --compile --install-headers E:\python\project\audi\venv\include\site\python3.7\PyAudio" failed with error code 1 in C:\Users\DEEPAK~1\AppData\Local\Temp\pip-install-vog_q_bd\PyAudio\
This is the error I got while trying to install the Pyaudio

Related

i am using pythone 3.8 when i try to install pyaudio it shows error [duplicate]

This question already has answers here:
Error "Microsoft Visual C++ 14.0 is required (Unable to find vcvarsall.bat)"
(36 answers)
Closed 2 years ago.
Collecting pyaudio
Using cached https://files.pythonhosted.org/packages/ab/42/b4f04721c5c5bfc196ce156b3c768998ef8c0ae3654ed29ea5020c749a6b/PyAudio-0.2.11.tar.gz
Installing collected packages: pyaudio
Running setup.py install for pyaudio ... error
ERROR: Command errored out with exit status 1:
command: 'c:\users\varun\appdata\local\programs\python\python38-32\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\varun\\AppData\\Local\\Temp\\pip-install-q5dyie_1\\pyaudio\\setup.py'"'"'; __file__='"'"'C:\\Users\\varun\\AppData\\Local\\Temp\\pip-install-q5dyie_1\\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\varun\AppData\Local\Temp\pip-record-ttcu7vjc\install-record.txt' --single-version-externally-managed --compile
cwd: C:\Users\varun\AppData\Local\Temp\pip-install-q5dyie_1\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 "Microsoft Visual C++ Build Tools": https://visualstudio.microsoft.com/downloads/
----------------------------------------
ERROR: Command errored out with exit status 1: 'c:\users\varun\appdata\local\programs\python\python38-32\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\varun\\AppData\\Local\\Temp\\pip-install-q5dyie_1\\pyaudio\\setup.py'"'"'; __file__='"'"'C:\\Users\\varun\\AppData\\Local\\Temp\\pip-install-q5dyie_1\\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\varun\AppData\Local\Temp\pip-record-ttcu7vjc\install-record.txt' --single-version-externally-managed --compile Check the logs for full command output.Collecting pyaudio
Using cached https://files.pythonhosted.org/packages/ab/42/b4f04721c5c5bfc196ce156b3c768998ef8c0ae3654ed29ea5020c749a6b/PyAudio-0.2.11.tar.gz
Installing collected packages: pyaudio
Running setup.py install for pyaudio ... error
ERROR: Command errored out with exit status 1:
command: 'c:\users\varun\appdata\local\programs\python\python38-32\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\varun\\AppData\\Local\\Temp\\pip-install-q5dyie_1\\pyaudio\\setup.py'"'"'; __file__='"'"'C:\\Users\\varun\\AppData\\Local\\Temp\\pip-install-q5dyie_1\\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\varun\AppData\Local\Temp\pip-record-ttcu7vjc\install-record.txt' --single-version-externally-managed --compile
cwd: C:\Users\varun\AppData\Local\Temp\pip-install-q5dyie_1\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 "Microsoft Visual C++ Build Tools": https://visualstudio.microsoft.com/downloads/
----------------------------------------
ERROR: Command errored out with exit status 1: 'c:\users\varun\appdata\local\programs\python\python38-32\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\varun\\AppData\\Local\\Temp\\pip-install-q5dyie_1\\pyaudio\\setup.py'"'"'; __file__='"'"'C:\\Users\\varun\\AppData\\Local\\Temp\\pip-install-q5dyie_1\\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\varun\AppData\Local\Temp\pip-record-ttcu7vjc\install-record.txt' --single-version-externally-managed --compile Check the logs for full command output.
The error message says "error: Microsoft Visual C++ 14.0 is required.", can you try setting it to see if it solves your problem?
You can find installation instructions here: https://visualstudio.microsoft.com/visual-cpp-build-tools/
Good luck!

faster-than-requests installing error python

Hey am trying to install faster-than-requests with and from file directly non of them works it gives an error :
PS C:\WINDOWS\system32> pip install faster-than-requests
Collecting faster-than-requests
Using cached https://files.pythonhosted.org/packages/90/15/72ffe29bf34b40b4b9881a89e0fbbf9d22ea0b493681965fd08ce1fafa7b/faster_than_requests-0.9.2.zip
Installing collected packages: faster-than-requests
Running setup.py install for faster-than-requests ... error
Complete output from command c:\users\gaming\appdata\local\programs\python\python37\python.exe -u -c "import setuptools, tokenize;file='C:\Users\GAMING\AppData\Local\Temp\pip-install-g86h8jtt\faster-than-requests\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\GAMING\AppData\Local\Temp\pip-record-8b_4dut4\install-record.txt --single-version-externally-managed --compile:
running install
running build
running build_ext
building 'faster_than_requests' extension
error: Microsoft Visual C++ 14.0 is required. Get it with "Microsoft Visual C++ Build Tools": https://visualstudio.microsoft.com/downloads/
----------------------------------------
Command "c:\users\gaming\appdata\local\programs\python\python37\python.exe -u -c "import setuptools, tokenize;file='C:\Users\GAMING\AppData\Local\Temp\pip-install-g86h8jtt\faster-than-requests\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\GAMING\AppData\Local\Temp\pip-record-8b_4dut4\install-record.txt --single-version-externally-managed --compile" failed with error code 1 in C:\Users\GAMING\AppData\Local\Temp\pip-install-g86h8jtt\faster-than-requests\

Fbprophet installation error - failed to setup

When I wanted to install Fbprophet, I got the error message. Please help.
error: Microsoft Visual C++ 14.0 is required. Get it with "Microsoft
Visual C++ Build Tools": https://visualstudio.microsoft.com/downloads/
Command "C:\Users\Ekin\Anaconda3\python.exe -u -c "import setuptools,
tokenize;file='C:\Users\Ekin\AppData\Local\Temp\pip-install-18154lmz\pystan\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\Ekin\AppData\Local\Temp\pip-record-73_kkd1_\install-record.txt
--single-version-externally-managed --compile" failed with error code 1 in C:\Users\Ekin\AppData\Local\Temp\pip-install-18154lmz\pystan\

ATD (after the deadline) for python 3.6 unable to install

When using sudo pip3 install atd to try and download the "after the deadline" module atd for python 3.6 I get the following error:
Failed to build atd
Installing collected packages: atd
Running setup.py install for atd ... error
Complete output from command /usr/bin/python3 -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-tfcxr6us/atd/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-xsek23ca-record/install-record.txt --single-version-externally-managed --compile:
running install
running build
running build_py
creating build
creating build/lib
creating build/lib/atd
copying atd/__init__.py -> build/lib/atd
copying atd/atd.py -> build/lib/atd
running build_scripts
creating build/scripts-3.6
error: file '/tmp/pip-build-tfcxr6us/atd/bin\atddir.py' does not exist
----------------------------------------
Command "/usr/bin/python3 -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-tfcxr6us/atd/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-xsek23ca-record/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /tmp/pip-build-tfcxr6us/atd/
The package atd is a connector for McAfee ATD API. Is it what you want?
The package is outdated because its setup.py uses ez_setup, deprecated and removed from setuptools long ago. The package was not updated since 2015.
The package is only for windows as its setup.py declares a script bin\\atddir.py.
I'm sure the module is unusable. Perhaps it's not what you want. What "after the deadline" module are you looking for?

Failed to install zbar in wndows for python using pip install zbar

Collecting zbar
Using cached https://files.pythonhosted.org/packages/33/54/cc5819efc9ee7e34b60b41e1d2d4753b6dd0c26a41c9a552611f66aa106e/zbar-0.10.tar.bz2
Installing collected packages: zbar
Running setup.py install for zbar ... error
Complete output from command c:\python27\python.exe -u -c "import
setuptools,
tokenize;file='c:\users\k\appdata\local\temp\pip-build-y0jgcd\zbar\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\k\appdata\local\temp\pip-labpqj-record\install-record.txt
--single-version-externally-managed --compile:
running install
running build
running build_ext
building 'zbar' extension
error: INCLUDE environment variable is empty
Command "c:\python27\python.exe -u -c "import setuptools,
tokenize;file='c:\users\k\appdata\local\temp\pip-build-y0jgcd\zbar\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\k\appdata\local\temp\pip-labpqj-record\install-record.txt
--single-version-externally-managed --compile" failed with error code 1 in c:\users\k\appdata\local\temp\pip-build-y0jgcd\zbar\
how to fix this problem
Try the install steps provided in : https://github.com/ZBar/ZBar/blob/master/README

Categories

Resources