T
T
trickster20192021-11-10 13:03:43
Python
trickster2019, 2021-11-10 13:03:43

How to fix "Command errored out with exit status 1:" error?

When trying to install the vidstream library, an error occurs:

ERROR: Command errored out with exit status 1:
     command: 'C:\Users\nesto\AppData\Local\Programs\Python\Python310\python.exe' -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\nesto\\AppData\\Local\\Temp\\pip-install-sfzpppbc\\pyaudio_1c03bba365b94b7c9ed5cc6d707b0d0a\\setup.py'"'"'; __file__='"'"'C:\\Users\\nesto\\AppData\\Local\\Temp\\pip-install-sfzpppbc\\pyaudio_1c03bba365b94b7c9ed5cc6d707b0d0a\\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\nesto\AppData\Local\Temp\pip-record-znl2sicq\install-record.txt' --single-version-externally-managed --compile --install-headers 'C:\Users\nesto\AppData\Local\Programs\Python\Python310\Include\pyaudio'
         cwd: C:\Users\nesto\AppData\Local\Temp\pip-install-sfzpppbc\pyaudio_1c03bba365b94b7c9ed5cc6d707b0d0a\
    Complete output (9 lines):
    running install
    running build
    running build_py
    creating build
    creating build\lib.win-amd64-3.10
    copying src\pyaudio.py -> build\lib.win-amd64-3.10
    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\nesto\AppData\Local\Programs\Python\Python310\python.exe' -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\nesto\\AppData\\Local\\Temp\\pip-install-sfzpppbc\\pyaudio_1c03bba365b94b7c9ed5cc6d707b0d0a\\setup.py'"'"'; __file__='"'"'C:\\Users\\nesto\\AppData\\Local\\Temp\\pip-install-sfzpppbc\\pyaudio_1c03bba365b94b7c9ed5cc6d707b0d0a\\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\nesto\AppData\Local\Temp\pip-record-znl2sicq\install-record.txt' --single-version-externally-managed --compile --install-headers 'C:\Users\nesto\AppData\Local\Programs\Python\Python310\Include\pyaudio' Check the logs for full command output.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
S
Sergey Gornostaev, 2021-11-10
@trickster2019

It looks like you need a C compiler to build the library, and you don't have it installed or configured on your system.

A
alexbprofit, 2021-11-10
@alexbprofit

It will not work even after installing the C compiler and the Windows SDK, because it can only be installed on a version of python not higher than 3.6, see the documentation

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question