0

What has happening here, Please help... I was trying to install the simple audio module using the command 'pip install simpleaudio' but it could not due to the following issue.

'''
C:\WINDOWS\system32>pip install simpleaudio
Collecting simpleaudio
  Using cached simpleaudio-1.0.4.tar.gz (2.0 MB)
Building wheels for collected packages: simpleaudio
  Building wheel for simpleaudio (setup.py) ... error
  ERROR: Command errored out with exit status 1:
   command: 'c:\program files\python39\python.exe' -u -c 'import sys, setuptools, tokenize; 
   sys.argv[0] = '"'"'C:\\Users\\user\\AppData\\Local\\Temp\\pip-install- 
   4ybvset9\\simpleaudio_dbc54108523e4f898261200a669f9680\\setup.py'"'"'; 

__file__='"'"'C:\\Users\\user\\AppData\\Local\\Temp\\pip-install-4ybvset9\\simpleaudio_dbc54108523e4f898261200a669f9680\\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' bdist_wheel -d 'C:\Users\user\AppData\Local\Temp\pip-wheel-ir3lnjuj'
           cwd: C:\Users\user\AppData\Local\Temp\pip-install-4ybvset9\simpleaudio_dbc54108523e4f898261200a669f9680\


 Complete output (18 lines):
  running bdist_wheel
  running build
  running build_py
  creating build
  creating build\lib.win-amd64-3.9
  creating build\lib.win-amd64-3.9\simpleaudio
  copying simpleaudio\__init__.py -> build\lib.win-amd64-3.9\simpleaudio
  copying simpleaudio\shiny.py -> build\lib.win-amd64-3.9\simpleaudio
  copying simpleaudio\functionchecks.py -> build\lib.win-amd64-3.9\simpleaudio
  creating build\lib.win-amd64-3.9\simpleaudio\test_audio
  copying simpleaudio\test_audio\c.wav -> build\lib.win-amd64-3.9\simpleaudio\test_audio
  copying simpleaudio\test_audio\e.wav -> build\lib.win-amd64-3.9\simpleaudio\test_audio
  copying simpleaudio\test_audio\g.wav -> build\lib.win-amd64-3.9\simpleaudio\test_audio
  copying simpleaudio\test_audio\left_right.wav -> build\lib.win-amd64-3.9\simpleaudio\test_audio
  copying simpleaudio\test_audio\notes_2_16_44.wav -> build\lib.win-amd64-3.9\simpleaudio\test_audio
  running build_ext
  building 'simpleaudio._simpleaudio' 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 simpleaudio
  Running setup.py clean for simpleaudio
Failed to build simpleaudio
    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\python39\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\user\\AppData\\Local\\Temp\\pip-install-4ybvset9\\simpleaudio_dbc54108523e4f898261200a669f9680\\setup.py'"'"'; __file__='"'"'C:\\Users\\user\\AppData\\Local\\Temp\\pip-install-4ybvset9\\simpleaudio_dbc54108523e4f898261200a669f9680\\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, `enter code here`__file__, '"'"'exec'"'"'))' install --record 'C:\Users\user\AppData\Local\Temp\pip-record-`9kfentx4`\install-record.txt' --single-version-externally-managed --compile --install-headers 'c:\program files\python39\Include\simpleaudio' Check the logs for full command output.

'''
PNxZEN
  • 19
  • 1
  • 5
  • This code is incomplete, since "stackOverflow" did not let me post the full Log saying ,"Its mostly Code"... The Complete Output (18 Lines) was repeated...Since pip tried to first build the Wheels, and failed. And the Second time, it tried to install using the "setup.py" and again Failed... – PNxZEN Feb 03 '21 at 11:15
  • Did you install build-tools from (https://visualstudio.microsoft.com/visual-cpp-build-tools/)? – Girish Feb 03 '21 at 11:16
  • @Girishiris , thanks but the site prompts me to download and install the Visual Studio Code , which I already have and Use. – PNxZEN Feb 03 '21 at 11:21
  • 1
    `Visual C++ 14.0` is now installed? If yes then it should solve your problem. – Girish Feb 03 '21 at 12:22
  • Thanks, It solved my problem too good !! – PNxZEN May 01 '21 at 01:21

0 Answers0