Pyaudio Installation Problem on Windows Through CMD - python-3.x

I was trying to install Pyaudio on my Windows 10 through CMD, but it shows an error. I have also installed Visual C++.
ERROR CODE looks like this:
"Command "c:\users\injamul\appdata\local\programs\python\python37-32\python.exe -u -c "import setuptools, tokenize;file='C:\Users\Injamul\AppData\Local\Temp\pip-install-6v7a5ry0\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\Injamul\AppData\Local\Temp\pip-record-okz6dexk\install-record.txt --single-version-externally-managed --compile" failed with error code 1 in C:\Users\Injamul\AppData\Local\Temp\pip-install-6v7a5ry0\pyaudio\"

Related

install python talib library in azure kudu

I keep failing to install talib library in Azure's Kudu Debug console.
From D:\home\python364x86 I ran python -m pip install Ta-Lib but got this error
Command "D:\home\python364x86\python.exe -u -c "import setuptools, tokenize;file='D:\local\Temp\pip-build-az9dvnof\talib\setup.py';f=getattr(tokenize, 'open', open)(file);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, file, 'exec'))" install --record D:\local\Temp\pip-1737i4ol-record\install-record.txt --single-version-externally-managed --compile --user --prefix=" failed with error code 1 in D:\local\Temp\pip-build-az9dvnof\talib\
Anyone successfully installed talib in Kudu debug console?

I am not getting the installation of the pyaudio library into my system

This is the output:
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": https://visualstudio.microsoft.com/downloads/
Command "c:\users\vishwas\appdata\local\programs\python\python37\python.exe -u -c "import setuptools, tokenize;__file__='C:\\Users\\Vishwas\\AppData\\Local\\Temp\\pip-install-g9skf8fa\\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\Vishwas\AppData\Local\Temp\pip-record-8gf9jsxc\install-record.txt --single-version-externally-managed --compile" failed with error code 1 in C:\Users\Vishwas\AppData\Local\Temp\pip-install-g9skf8fa\PyAudio\
"Where is it releated to python and c++"
I have tried all the methods even easy_install but didn't work:
pip install PyAudio
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 Complete output from command c:\users\vishwas\appdata\local\programs\python\python37\python.exe -u -c "import setuptools, tokenize;__file__='C:\\Users\\Vishwas\\AppData\\Local\\Temp\\pip-install-g9skf8fa\\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\Vishwas\AppData\Local\Temp\pip-record-8gf9jsxc\install-record.txt --single-version-externally-managed --compile: 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": https://visualstudio.microsoft.com/downloads/ ---------------------------------------- Command "c:\users\vishwas\appdata\local\programs\python\python37\python.exe -u -c
"import setuptools, tokenize;__file__='C:\\Users\\Vishwas\\AppData\\Local\\Temp\\pip-install-g9skf8fa\\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\Vishwas\AppData\Local\Temp\pip-record-8gf9jsxc\install-record.txt --single-version-externally-managed --compile" failed with error code 1 in C:\Users\Vishwas\AppData\Local\Temp\pip-install-g9skf8fa\PyAudio\
It looks like the buildtools from Micrsoft Studio are required for some dependencies. So should be no problem to install them from the links in the error message.

Can't pip install lxml

I am getting this error [I have installed setuptools already]
Command C:\Python34\python.exe -c "import setuptools,
tokenize;__file__='C:\Users\YASHOR~1\AppData\Local\Temp\pip_build_yashoraja\lxml\setup.py';exec(compile(getattr(tokenize,
'open', open)(__file__).read().replace('\r\n', '\n'), __file__,
'exec'))" install --record
C:\Users\YASHOR~1\AppData\Local\Temp\pip-9akmmco4-record\install-record.txt
--single-version-externally-managed --compile failed with error code 1 in C:\Users\YASHOR~1\AppData\Local\Temp\pip_build_yashoraja\lxml
You need to build it on Windows.
Instructions and binaries on their web site:
https://lxml.de/installation.html
https://lxml.de/installation.html#source-builds-on-ms-windows
Personally, I had a similar issue with pyaudio and I just gave up and did my project on Linux.

How to understand this Pygame error?

I'm trying to install Pygame on My computer. I am running Mac OSX with Python 3.7.0. I successfully installed pip3, but when I try to install Pygame using sudo pip3 install hg+http://bitbucket.org/pygame/pygame, I get the following error:
Command "/usr/local/opt/python/bin/python3.7 -u -c "import setuptools, tokenize;__file__='/private/tmp/pip-install-arxkd3yz/pygame/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /private/tmp/pip-record-iq00o_g3/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /private/tmp/pip-install-arxkd3yz/pygame/
What is the reason for this error, and a fix for the same?

Error while installing scrapy?

i use python 3.6 , and when i try to install scrapy using pip on cmd the output was as shown here :
Command ""c:\program files\python36\python.exe" -u -c "import
setuptools,
tokenize;__file__='C:\\Users\\Sarah\\AppData\\Local\\Temp\\pip-build-
hql11prt\\Twisted\\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\Sarah\AppData\Local\Temp\pip-b2cmfpf2-record\install-
record.txt --single-version-externally-managed --compile" failed with
error code 1 in C:\Users\Sarah\AppData\Local\Temp\pip-build-
hql11prt\Twisted\
how can i solve this problem ?
Download Twisted from the website below and install it first, and then pip install scrapy
https://www.lfd.uci.edu/~gohlke/pythonlibs/

Resources