scottlawsonbc / audio-reactive-led-strip

:musical_note: :rainbow: Real-time LED strip music visualization using Python and the ESP8266 or Raspberry Pi
MIT License
2.67k stars 642 forks source link

having issue when install pyaudio --- Microsoft C++ Build Tools #336

Closed ZelkerD closed 2 years ago

ZelkerD commented 3 years ago

Hi there,

I'm a newbie to dev envir, not sure if anything wrong.

Win10 17134.1130 Python 3.8.8

I've succefully done : Anaconda + 8266 addon conda install numpy scipy pyqtgraph

But when I did "pip install pyaudio", something wrong as below:

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: 'E:\IoT\ESP8266\Anaconda\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\Users\Freeb\AppData\Local\Temp\pip-install-n5p6ot1_\pyaudio775419936f824901bfe7eb2cac4dcdf3\setup.py'"'"'; file='"'"'C:\Users\Freeb\AppData\Local\Temp\pip-install-n5p6ot1\pyaudio_775419936f824901bfe7eb2cac4dcdf3\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(file);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' bdistwheel -d 'C:\Users\Freeb\AppData\Local\Temp\pip-wheel-rlwvrp64' cwd: C:\Users\Freeb\AppData\Local\Temp\pip-install-n5p6ot1\pyaudio_775419936f824901bfe7eb2cac4dcdf3\ Complete output (9 lines): running bdist_wheel 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 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: 'E:\IoT\ESP8266\Anaconda\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\Users\Freeb\AppData\Local\Temp\pip-install-n5p6ot1_\pyaudio775419936f824901bfe7eb2cac4dcdf3\setup.py'"'"'; file='"'"'C:\Users\Freeb\AppData\Local\Temp\pip-install-n5p6ot1\pyaudio775419936f824901bfe7eb2cac4dcdf3\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\Freeb\AppData\Local\Temp\pip-record-ruwnyqil\install-record.txt' --single-version-externally-managed --compile --install-headers 'E:\IoT\ESP8266\Anaconda\Include\pyaudio' cwd: C:\Users\Freeb\AppData\Local\Temp\pip-install-n5p6ot1\pyaudio_775419936f824901bfe7eb2cac4dcdf3\ Complete output (9 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 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: 'E:\IoT\ESP8266\Anaconda\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\Users\Freeb\AppData\Local\Temp\pip-install-n5p6ot1_\pyaudio775419936f824901bfe7eb2cac4dcdf3\setup.py'"'"'; file='"'"'C:\Users\Freeb\AppData\Local\Temp\pip-install-n5p6ot1\pyaudio_775419936f824901bfe7eb2cac4dcdf3\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\Freeb\AppData\Local\Temp\pip-record-ruwnyqil\install-record.txt' --single-version-externally-managed --compile --install-headers 'E:\IoT\ESP8266\Anaconda\Include\pyaudio' Check the logs for full command output.

I've installed Microsoft Build Tools 2015 as it shows in windows settings: image

However, it still failled to install. What should I do? pls help! Thanks!

ZelkerD commented 3 years ago

how to close this thread.....

joeybab3 commented 3 years ago

If you've solved this issue, you can press "close with comment" or "close issue". If not feel free to update this issue with details and someone may be able to help.