vidstream
vidstream copied to clipboard
Cannot install, Pyaudio issue
I am receiving an error upon install. Anybody know why this is happening and how to fix it?
ERROR:
Command errored out with exit status 1:
command:
'c:\users\USER\appdata\local\programs\python\python38\python.exe' -u -c'import io, os, sys, setuptools, tokenize;
sys.argv[0] = '"'"'C:\\Users\\USER\\AppData\\Local\\Temp\\pip-install-h69c5cy6\\pyaudio_da82baec7670489bbcc156db2a19a7de\\setup.py'"'"';
__file__='"'"'C:\\Users\\USER\\AppData\\Local\\Temp\\pip-install-h69c5cy6\\pyaudio_da82baec7670489bbcc156db2a19a7de\\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-3el35qod\install-record.txt' --single-version-externally-managed --compile --install-headers 'c:\users\USER\appdata\local\programs\python\python38\Include\pyaudio'```
yes me too, just install pyaudio manually:
pip install pyaudio
(if you run into further problem just ask me)
yes me too, just install pyaudio manually:
pip install pyaudio(if you run into further problem just ask me)
had already tried that, but i receive what appears to be the exact same error?
yes me too, just install pyaudio manually:
pip install pyaudio(if you run into further problem just ask me)
Running setup.py install for pyaudio ... error
ERROR: Command errored out with exit status 1:
command: 'c:\users\USER\appdata\local\programs\python\python38\python.exe' -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\USER\\AppData\\Local\\Temp\\pip-install-g0xmp48n\\pyaudio_d980a84ab3af463e9ada832fefc6a266\\setup.py'"'"'; __file__='"'"'C:\\Users\\USER\\AppData\\Local\\Temp\\pip-install-g0xmp48n\\pyaudio_d980a84ab3af463e9ada832fefc6a266\\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-3b6613gv\install-record.txt' --single-version-externally-managed --compile --install-headers 'c:\users\USER\appdata\local\programs\python\python38\Include\pyaudio'
cwd: C:\Users\USER\AppData\Local\Temp\pip-install-g0xmp48n\pyaudio_d980a84ab3af463e9ada832fefc6a266\
Complete output (17 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
creating build\temp.win-amd64-3.8
creating build\temp.win-amd64-3.8\Release
creating build\temp.win-amd64-3.8\Release\src
C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\VC\Tools\MSVC\14.16.27023\bin\HostX86\x64\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -DMS_WIN64=1 -Ic:\users\USER\appdata\local\programs\python\python38\include -Ic:\users\USER\appdata\local\programs\python\python38\include "-IC:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\VC\Tools\MSVC\14.16.27023\include" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\ucrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\shared" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\um" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\winrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\cppwinrt" /Tcsrc/_portaudiomodule.c /Fobuild\temp.win-amd64-3.8\Release\src/_portaudiomodule.obj
_portaudiomodule.c
c:\users\USER\appdata\local\programs\python\python38\include\pyconfig.h(117): warning C4005: 'MS_WIN64': macro redefinition
src/_portaudiomodule.c: note: see previous definition of 'MS_WIN64'
src/_portaudiomodule.c(29): fatal error C1083: Cannot open include file: 'portaudio.h': No such file or directory
error: command 'C:\\Program Files (x86)\\Microsoft Visual Studio\\2017\\BuildTools\\VC\\Tools\\MSVC\\14.16.27023\\bin\\HostX86\\x64\\cl.exe' failed with exit status 2
----------------------------------------
ERROR: Command errored out with exit status 1: 'c:\users\USER\appdata\local\programs\python\python38\python.exe' -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\USER\\AppData\\Local\\Temp\\pip-install-g0xmp48n\\pyaudio_d980a84ab3af463e9ada832fefc6a266\\setup.py'"'"'; __file__='"'"'C:\\Users\\USER\\AppData\\Local\\Temp\\pip-install-g0xmp48n\\pyaudio_d980a84ab3af463e9ada832fefc6a266\\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-3b6613gv\install-record.txt' --single-version-externally-managed --compile --install-headers 'c:\users\USER\appdata\local\programs\python\python38\Include\pyaudio' Check the logs for full command output.
After a quick skim, it looks like it might be expecting me to be running this stuff from Visual Studio instead of directly from CMD?
See this issue on stackoverflow: https://stackoverflow.com/questions/52283840/i-cant-install-pyaudio-on-windows-how-to-solve-error-microsoft-visual-c-14 and go for the first solution it shoud works
See this issue on stackoverflow: https://stackoverflow.com/questions/52283840/i-cant-install-pyaudio-on-windows-how-to-solve-error-microsoft-visual-c-14 and go for the first solution it shoud works
Tried pip install --upgrade setuptools, but still receiving errors:
pip install vidstreams
Running setup.py install for pyaudio ... error
ERROR: Command errored out with exit status 1:
command: 'c:\users\anthony\appdata\local\programs\python\python38\python.exe' -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\Anthony\\AppData\\Local\\Temp\\pip-install-vc20aabw\\pyaudio_2b4cdc40c63d494abe5db9bf890e9ed3\\setup.py'"'"'; __file__='"'"'C:\\Users\\Anthony\\AppData\\Local\\Temp\\pip-install-vc20aabw\\pyaudio_2b4cdc40c63d494abe5db9bf890e9ed3\\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\Anthony\AppData\Local\Temp\pip-record-uc17m1hd\install-record.txt' --single-version-externally-managed --compile --install-headers 'c:\users\anthony\appdata\local\programs\python\python38\Include\pyaudio'
cwd: C:\Users\Anthony\AppData\Local\Temp\pip-install-vc20aabw\pyaudio_2b4cdc40c63d494abe5db9bf890e9ed3\
Complete output (17 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
creating build\temp.win-amd64-3.8
creating build\temp.win-amd64-3.8\Release
creating build\temp.win-amd64-3.8\Release\src
C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\VC\Tools\MSVC\14.16.27023\bin\HostX86\x64\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -DMS_WIN64=1 -Ic:\users\anthony\appdata\local\programs\python\python38\include -Ic:\users\anthony\appdata\local\programs\python\python38\include "-IC:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\VC\Tools\MSVC\14.16.27023\include" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\ucrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\shared" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\um" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\winrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\cppwinrt" /Tcsrc/_portaudiomodule.c /Fobuild\temp.win-amd64-3.8\Release\src/_portaudiomodule.obj
_portaudiomodule.c
c:\users\anthony\appdata\local\programs\python\python38\include\pyconfig.h(117): warning C4005: 'MS_WIN64': macro redefinition
src/_portaudiomodule.c: note: see previous definition of 'MS_WIN64'
src/_portaudiomodule.c(29): fatal error C1083: Cannot open include file: 'portaudio.h': No such file or directory
error: command 'C:\\Program Files (x86)\\Microsoft Visual Studio\\2017\\BuildTools\\VC\\Tools\\MSVC\\14.16.27023\\bin\\HostX86\\x64\\cl.exe' failed with exit status 2
----------------------------------------
ERROR: Command errored out with exit status 1: 'c:\users\anthony\appdata\local\programs\python\python38\python.exe' -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\Anthony\\AppData\\Local\\Temp\\pip-install-vc20aabw\\pyaudio_2b4cdc40c63d494abe5db9bf890e9ed3\\setup.py'"'"'; __file__='"'"'C:\\Users\\Anthony\\AppData\\Local\\Temp\\pip-install-vc20aabw\\pyaudio_2b4cdc40c63d494abe5db9bf890e9ed3\\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\Anthony\AppData\Local\Temp\pip-record-uc17m1hd\install-record.txt' --single-version-externally-managed --compile --install-headers 'c:\users\anthony\appdata\local\programs\python\python38\Include\pyaudio' Check the logs for full command output.
pip install pyaudio
Running setup.py install for pyaudio ... error
ERROR: Command errored out with exit status 1:
command: 'c:\users\anthony\appdata\local\programs\python\python38\python.exe' -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\Anthony\\AppData\\Local\\Temp\\pip-install-ep_exg8h\\pyaudio_379da5fc00d44ec095f844ce7bcf6c44\\setup.py'"'"'; __file__='"'"'C:\\Users\\Anthony\\AppData\\Local\\Temp\\pip-install-ep_exg8h\\pyaudio_379da5fc00d44ec095f844ce7bcf6c44\\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\Anthony\AppData\Local\Temp\pip-record-npu2pke1\install-record.txt' --single-version-externally-managed --compile --install-headers 'c:\users\anthony\appdata\local\programs\python\python38\Include\pyaudio'
cwd: C:\Users\Anthony\AppData\Local\Temp\pip-install-ep_exg8h\pyaudio_379da5fc00d44ec095f844ce7bcf6c44\
Complete output (17 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
creating build\temp.win-amd64-3.8
creating build\temp.win-amd64-3.8\Release
creating build\temp.win-amd64-3.8\Release\src
C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\VC\Tools\MSVC\14.16.27023\bin\HostX86\x64\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -DMS_WIN64=1 -Ic:\users\anthony\appdata\local\programs\python\python38\include -Ic:\users\anthony\appdata\local\programs\python\python38\include "-IC:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\VC\Tools\MSVC\14.16.27023\include" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\ucrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\shared" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\um" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\winrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\cppwinrt" /Tcsrc/_portaudiomodule.c /Fobuild\temp.win-amd64-3.8\Release\src/_portaudiomodule.obj
_portaudiomodule.c
c:\users\anthony\appdata\local\programs\python\python38\include\pyconfig.h(117): warning C4005: 'MS_WIN64': macro redefinition
src/_portaudiomodule.c: note: see previous definition of 'MS_WIN64'
src/_portaudiomodule.c(29): fatal error C1083: Cannot open include file: 'portaudio.h': No such file or directory
error: command 'C:\\Program Files (x86)\\Microsoft Visual Studio\\2017\\BuildTools\\VC\\Tools\\MSVC\\14.16.27023\\bin\\HostX86\\x64\\cl.exe' failed with exit status 2
----------------------------------------
ERROR: Command errored out with exit status 1: 'c:\users\anthony\appdata\local\programs\python\python38\python.exe' -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\Anthony\\AppData\\Local\\Temp\\pip-install-ep_exg8h\\pyaudio_379da5fc00d44ec095f844ce7bcf6c44\\setup.py'"'"'; __file__='"'"'C:\\Users\\Anthony\\AppData\\Local\\Temp\\pip-install-ep_exg8h\\pyaudio_379da5fc00d44ec095f844ce7bcf6c44\\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\Anthony\AppData\Local\Temp\pip-record-npu2pke1\install-record.txt' --single-version-externally-managed --compile --install-headers 'c:\users\anthony\appdata\local\programs\python\python38\Include\pyaudio' Check the logs for full command output.
Maybe you have fixed it but I still want to share this answer. It works for me on Window 10.
Maybe you have fixed it but I still want to share this answer. It works for me on Window 10.
Thank you so much! It worked like a charm!