I have been trying for the last few days to download the vidstream library , such a library has 3 dependencies:
dependencies
pyaudio, opencv-python ,pyautogui
These dependencies were installed using pip , but when downloading the pyaudio library it gave me a problem this is what I have done
(Command in CMD)
pip install pyaudio
(mistake)
Collecting pyaudio Using cached PyAudio-0.2.11.tar.gz (37 kB) Building wheels for collected packages: pyaudio Building wheel for pyaudio (setup.py) ... error ERROR: Command errored out with exit status 1: command: ' c:\users\0.0\appdata\local\programs\python\python38-32\python.exe' -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\Users\0.0\AppData\Local\Temp\pip-install-yjf3p7pm\pyaudio_10680ee5de7143faa1fe1976024ce885\setup.py'"'"'; file ='"'"'C:\Users\0.0\AppData\Local\Temp\pip-install-yjf3p7pm\pyaudio_10680ee5de7143faa1fe1976024ce885\setup.py'"'"';f = getattr(tokenize, '"'"'open' "'"', open)( file ) if os.path.Microsoft Visual C++ 14.0 is required. Get it with "Build Tools for Visual Studio": https://visualstudio.microsoft.com/downloads/
---------------------------------------- ERROR: Failed building wheel for pyaudio
I have also tried installing from a vidstream using pip install vidstream
and it gives me the same error.
I would greatly appreciate your help, I hope I can also help someone with my question.
As the error mentions, you need to download and install Microsoft C++ Build Tools
The answer is the following:
"To install certain packages with external requirements like in this case Visual Studio , we can also do it using the .whl extension "
These are the steps:
Go to the Unofficial-PythonLibs website , and search for the library we need pyaudio . After doing that download the version
PyAudio-0.2.11-cp38-cp38-win32.whl
.(the version may vary depending on the version of python)Later I opened the cmd as administrator , and put the following command:
py -m pip install PyAudio-0.2.11-cp38-cp38-win32.whl
And to check the downloaded information, I opened IDLE and typed the following command: import pyaudio
thanks a lot to everybody who help me