ERROR: Command errored out with exit status 1: (Command Prompt) [duplicate] - python

This question already has answers here:
Error "Microsoft Visual C++ 14.0 is required (Unable to find vcvarsall.bat)"
(36 answers)
Error while installing lxml through pip: Microsoft Visual C++ 14.0 is required
(8 answers)
Pip error even Microsoft Visual C++ 14.0 is installed
(4 answers)
Installing MS C++ 14.0 for python without Visual Studio
(3 answers)
Closed 1 year ago.
I get an error with my command prompt. I tried pip install notebook from Jupyter, but some errors came. I appreciate anyone who views or answers, thanks for your time!
ERROR: Command errored out with exit status 1:
command: 'c:\users\ali\appdata\local\programs\python\python38-32\python.exe' -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\Ali\\AppData\\Local\\Temp\\pip-install-1eke7zh0\\pywinpty_541aba1e831148ec8ed9409eefc720d1\\setup.py'"'"'; __file__='"'"'C:\\Users\\Ali\\AppData\\Local\\Temp\\pip-install-1eke7zh0\\pywinpty_541aba1e831148ec8ed9409eefc720d1\\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\Ali\AppData\Local\Temp\pip-record-brdl12uh\install-record.txt' --single-version-externally-managed --compile --install-headers 'c:\users\ali\appdata\local\programs\python\python38-32\Include\pywinpty'
cwd: C:\Users\Ali\AppData\Local\Temp\pip-install-1eke7zh0\pywinpty_541aba1e831148ec8ed9409eefc720d1\
Complete output (19 lines):
running install
running build
running build_py
creating build
creating build\lib.win32-3.8
creating build\lib.win32-3.8\winpty
copying winpty\ptyprocess.py -> build\lib.win32-3.8\winpty
copying winpty\winpty_wrapper.py -> build\lib.win32-3.8\winpty
copying winpty\__init__.py -> build\lib.win32-3.8\winpty
creating build\lib.win32-3.8\winpty\tests
copying winpty\tests\test_cywinpty.py -> build\lib.win32-3.8\winpty\tests
copying winpty\tests\test_ptyprocess.py -> build\lib.win32-3.8\winpty\tests
copying winpty\tests\test_winpty_wrapper.py -> build\lib.win32-3.8\winpty\tests
copying winpty\tests\__init__.py -> build\lib.win32-3.8\winpty\tests
creating build\lib.win32-3.8\winpty\_winpty
copying winpty\_winpty\__init__.py -> build\lib.win32-3.8\winpty\_winpty
running build_ext
building 'winpty.cywinpty' 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\ali\appdata\local\programs\python\python38-32\python.exe' -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\Ali\\AppData\\Local\\Temp\\pip-install-1eke7zh0\\pywinpty_541aba1e831148ec8ed9409eefc720d1\\setup.py'"'"'; __file__='"'"'C:\\Users\\Ali\\AppData\\Local\\Temp\\pip-install-1eke7zh0\\pywinpty_541aba1e831148ec8ed9409eefc720d1\\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\Ali\AppData\Local\Temp\pip-record-brdl12uh\install-record.txt' --single-version-externally-managed --compile --install-headers 'c:\users\ali\appdata\local\programs\python\python38-32\Include\pywinpty' Check the logs for full command output.

The error message includes:
error: Microsoft Visual C++ 14.0 is required. Get it with "Microsoft Visual C++ Build Tools": https://visualstudio.microsoft.com/downloads/
So go to https://visualstudio.microsoft.com/downloads/ and install Microsoft Visual C++ Build Tools.

Related

Installing mod_wsgi with pip install causes an error [duplicate]

This question already has answers here:
Error "Microsoft Visual C++ 14.0 is required (Unable to find vcvarsall.bat)"
(36 answers)
Error while installing lxml through pip: Microsoft Visual C++ 14.0 is required
(8 answers)
Pip error even Microsoft Visual C++ 14.0 is installed
(4 answers)
How to solve "error: Microsoft Visual C++ 14.0 or greater is required" when installing Python packages?
(9 answers)
Closed last year.
I am trying to install mod_wsgi so I can run my Django app with Apache.
However when I use pip install mod_wsgi I get the following error:
ERROR: Command errored out with exit status 1:
command: 'C:\Program Files\Python310\python.exe' -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\Admin\\AppData\\Local\\Temp\\pip-install-_w59fztq\\mod-wsgi_5a0ae0135da94aadbb09b85297022451\\setup.py'"'"'; __file__='"'"'C:\\Users\\Admin\\AppData\\Local\\Temp\\pip-install-_w59fztq\\mod-wsgi_5a0ae0135da94aadbb09b85297022451\\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\Admin\AppData\Local\Temp\pip-record-mwvtbeia\install-record.txt' --single-version-externally-managed --user --prefix= --compile --install-headers 'C:\Users\Admin\AppData\Roaming\Python\Python310\Include\mod-wsgi'
cwd: C:\Users\Admin\AppData\Local\Temp\pip-install-_w59fztq\mod-wsgi_5a0ae0135da94aadbb09b85297022451\
Complete output (24 lines):
running install
running build
running build_py
creating build
creating build\lib.win-amd64-3.10
creating build\lib.win-amd64-3.10\mod_wsgi
copying src\__init__.py -> build\lib.win-amd64-3.10\mod_wsgi
creating build\lib.win-amd64-3.10\mod_wsgi\server
copying src\server\apxs_config.py -> build\lib.win-amd64-3.10\mod_wsgi\server
copying src\server\environ.py -> build\lib.win-amd64-3.10\mod_wsgi\server
copying src\server\__init__.py -> build\lib.win-amd64-3.10\mod_wsgi\server
creating build\lib.win-amd64-3.10\mod_wsgi\server\management
copying src\server\management\__init__.py -> build\lib.win-amd64-3.10\mod_wsgi\server\management
creating build\lib.win-amd64-3.10\mod_wsgi\server\management\commands
copying src\server\management\commands\runmodwsgi.py -> build\lib.win-amd64-3.10\mod_wsgi\server\management\commands
copying src\server\management\commands\__init__.py -> build\lib.win-amd64-3.10\mod_wsgi\server\management\commands
creating build\lib.win-amd64-3.10\mod_wsgi\docs
copying docs\_build\html\__init__.py -> build\lib.win-amd64-3.10\mod_wsgi\docs
creating build\lib.win-amd64-3.10\mod_wsgi\images
copying images\__init__.py -> build\lib.win-amd64-3.10\mod_wsgi\images
copying images\snake-whiskey.jpg -> build\lib.win-amd64-3.10\mod_wsgi\images
running build_ext
building 'mod_wsgi.server.mod_wsgi' 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\Python310\python.exe' -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\Admin\\AppData\\Local\\Temp\\pip-install-_w59fztq\\mod-wsgi_5a0ae0135da94aadbb09b85297022451\\setup.py'"'"'; __file__='"'"'C:\\Users\\Admin\\AppData\\Local\\Temp\\pip-install-_w59fztq\\mod-wsgi_5a0ae0135da94aadbb09b85297022451\\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\Admin\AppData\Local\Temp\pip-record-mwvtbeia\install-record.txt' --single-version-externally-managed --user --prefix= --compile --install-headers 'C:\Users\Admin\AppData\Roaming\Python\Python310\Include\mod-wsgi' Check the logs for full command output.
I have no idea what the issue here could be..

How do I fix an Error with pip install bllipparser?

I was trying to install the bllipparser for a project and used the command pip install bllipparser in the terminal, but I got the following error.
Installing collected packages: bllipparser
Running setup.py install for bllipparser ... error
ERROR: Command errored out with exit status 1:
command: 'C:\Users\1000284172\AppData\Local\Microsoft\WindowsApps\PythonSoftwareFoundation.Python.3.9_qbz5n2kfra8p0\python.exe' -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\1000284172\\AppData\\Local\\Temp\\pip-install-aik213us\\bllipparser_736f2d4697234f66883f283f0d23bdcf\\setup.py'"'"'; __file__='"'"'C:\\Users\\1000284172\\AppData\\Local\\Temp\\pip-install-aik213us\\bllipparser_736f2d4697234f66883f283f0d23bdcf\\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\1000284172\AppData\Local\Temp\pip-record-dvw0bufb\install-record.txt' --single-version-externally-managed --user --prefix= --compile --install-headers 'C:\Users\1000284172\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.9_qbz5n2kfra8p0\LocalCache\local-packages\Python39\Include\bllipparser'
cwd: C:\Users\1000284172\AppData\Local\Temp\pip-install-aik213us\bllipparser_736f2d4697234f66883f283f0d23bdcf\
Complete output (18 lines):
running install
running build
running build_py
creating build
creating build\lib.win-amd64-3.9
creating build\lib.win-amd64-3.9\bllipparser
copying python\bllipparser\CharniakParser.py -> build\lib.win-amd64-3.9\bllipparser
copying python\bllipparser\JohnsonReranker.py -> build\lib.win-amd64-3.9\bllipparser
copying python\bllipparser\ModelFetcher.py -> build\lib.win-amd64-3.9\bllipparser
copying python\bllipparser\ParsingShell.py -> build\lib.win-amd64-3.9\bllipparser
copying python\bllipparser\RerankerFeatureCorpus.py -> build\lib.win-amd64-3.9\bllipparser
copying python\bllipparser\RerankingParser.py -> build\lib.win-amd64-3.9\bllipparser
copying python\bllipparser\Utility.py -> build\lib.win-amd64-3.9\bllipparser
copying python\bllipparser\__init__.py -> build\lib.win-amd64-3.9\bllipparser
copying python\bllipparser\__main__.py -> build\lib.win-amd64-3.9\bllipparser
running build_ext
building 'bllipparser._CharniakParser' 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\1000284172\AppData\Local\Microsoft\WindowsApps\PythonSoftwareFoundation.Python.3.9_qbz5n2kfra8p0\python.exe' -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\1000284172\\AppData\\Local\\Temp\\pip-install-aik213us\\bllipparser_736f2d4697234f66883f283f0d23bdcf\\setup.py'"'"'; __file__='"'"'C:\\Users\\1000284172\\AppData\\Local\\Temp\\pip-install-aik213us\\bllipparser_736f2d4697234f66883f283f0d23bdcf\\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\1000284172\AppData\Local\Temp\pip-record-dvw0bufb\install-record.txt' --single-version-externally-managed --user --prefix= --compile --install-headers 'C:\Users\1000284172\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.9_qbz5n2kfra8p0\LocalCache\local-packages\Python39\Include\bllipparser' Check the logs for full command output.
Is there any issue with the installation method? How do I resolve this?
You are missing a compiler as your error states:
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/
However, even if you get that fixed, this package is not really compatible with windows, see this github issue. So you are probably better of switching to a different OS or a different package

Error Installing pyaudio: Microsoft Visual C++ 14.0 is required

After doing pip install pyaudio, It started collecting the package but suddenly it displayed Following error
This is the error I got in the terminal
PS C:\Users\user> 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\user\appdata\local\programs\python\python39\python.exe' -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\user\\AppData\\Local\\Temp\\pip-install-rqkofe07\\pyaudio_e2694735f99f47ea89c7f6ea2c6b1e31\\setup.py'"'"'; __file__='"'"'C:\\Users\\user\\AppData\\Local\\Temp\\pip-install-rqkofe07\\pyaudio_e2694735f99f47ea89c7f6ea2c6b1e31\\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\user\AppData\Local\Temp\pip-record-lmei1_wv\install-record.txt' --single-version-externally-managed --compile --install-headers 'c:\users\user\appdata\local\programs\python\python39\Include\pyaudio'
cwd: C:\Users\user\AppData\Local\Temp\pip-install-rqkofe07\pyaudio_e2694735f99f47ea89c7f6ea2c6b1e31\
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 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\user\appdata\local\programs\python\python39\python.exe' -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\user\\AppData\\Local\\Temp\\pip-install-rqkofe07\\pyaudio_e2694735f99f47ea89c7f6ea2c6b1e31\\setup.py'"'"'; __file__='"'"'C:\\Users\\user\\AppData\\Local\\Temp\\pip-install-rqkofe07\\pyaudio_e2694735f99f47ea89c7f6ea2c6b1e31\\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\user\AppData\Local\Temp\pip-record-lmei1_wv\install-record.txt' --single-version-externally-managed --compile --install-headers 'c:\users\user\appdata\local\programs\python\python39\Include\pyaudio' Check the logs for full command output.
While the solution by #William will work, I think you should do this instead of installing ~4 gb of programs.
Go here, after that, install a suitable wheel
eg:
The suitable wheel for me is PyAudio-0.2.11-cp39-cp39-win_amd64.whl, as I have python 3.9(cp39) and it is a 64 bit installation(amd64).
After installing it in a directory (say, C:/docs), got to cmd and write
cd C:/docs
pip install PyAudio-0.2.11-cp39-cp39-win_amd64.whl
This should work
extension error: Microsoft Visual C++ 14.0 is required. Get it with "Build Tools for Visual Studio": https://visualstudio.microsoft.com/downloads/
The error is in your traceback, you need Microsoft Visual C++.
In order to get C++ on your computer you will need to install Visual Studio using the link in the error code: https://visualstudio.microsoft.com/downloads/

How do I solve PyAudio installation error? [duplicate]

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 1 year ago.
So, I was looking for some voice recognition project and I need to use the PyAudio lib, but, when installing it in Windows I just receive some erros of installation.
The method of installation that I'm using is:
pip install pyaudio
When I execute the command in cmd the result is:
command: 'c:\users\pedro\virtualenvs\pyjarvis\scripts\python.exe' -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\pedro\\AppData\\Local\\Temp\\pip-install-tbw4bc33\\pyaudio_3d715acd64eb45979bf989d5585f978d\\setup.py'"'"'; __file__='"'"'C:\\Users\\pedro\\AppData\\Local\\Temp\\pip-install-tbw4bc33\\pyaudio_3d715acd64eb45979bf989d5585f978d\\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'"'"'))' bdist_wheel -d 'C:\Users\pedro\AppData\Local\Temp\pip-wheel-9omziclx'
cwd: C:\Users\pedro\AppData\Local\Temp\pip-install-tbw4bc33\pyaudio_3d715acd64eb45979bf989d5585f978d\
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:\users\pedro\virtualenvs\pyjarvis\scripts\python.exe' -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\pedro\\AppData\\Local\\Temp\\pip-install-tbw4bc33\\pyaudio_3d715acd64eb45979bf989d5585f978d\\setup.py'"'"'; __file__='"'"'C:\\Users\\pedro\\AppData\\Local\\Temp\\pip-install-tbw4bc33\\pyaudio_3d715acd64eb45979bf989d5585f978d\\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\pedro\AppData\Local\Temp\pip-record-mzmmtmwh\install-record.txt' --single-version-externally-managed --compile --install-headers 'c:\users\pedro\virtualenvs\pyjarvis\include\site\python3.9\PyAudio'
cwd: C:\Users\pedro\AppData\Local\Temp\pip-install-tbw4bc33\pyaudio_3d715acd64eb45979bf989d5585f978d\
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/
That's the problem, what should I do?
Though the error says error: Microsoft Visual C++ 14.0 or greater is required. You can try installing the unofficial python binary for pyaudio from here.
Note - Install the wheel package in accordance of your system and python version.
For example if your system is of 64 bit and you running python 3.9.x then you will have to install PyAudio‑0.2.11‑cp39‑cp39‑win_amd64.whl
After you're done with the installation open up your terminal and navigate to the folder where the wheel package is installed, then enter the following command
pip install your_wheel_package_name.whl

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!

Categories

Resources