“ERROR: Command errored out with exit status 1: python.” when installing simple audio for Python

5.3k views Asked by At

I tried to install the simpleaudio module but I keep getting the same error. In my previous attempts, I included in the installation of python the path checkmark, and checked for pip to be installed on the PC.

I similarly tried to run both python3 -m pip install simpleaudio and python -m pip install simpleaudio, and only for python was the command executed but with the outputted error shown in the image:

enter image description here

4

There are 4 answers

2
apr_1985 On BEST ANSWER

The error is in the picture

error: Microsoft Visual C++ 14.0 is required........

Looks like you need to install C++ to build the module

0
Bhavya Parikh On

You can solve this problem with out installing C++ library.

  1. from here you can find it simpleaudio
  2. You can download wheel file according to your python version and
  3. download it and give full path of that file and install it as like mine is python 3.9 with 64bit

pip install simpleaudio‑1.0.4‑cp39‑cp39‑win_amd64.whl

0
Rohit Joshi On

This solution is specifically for linux user.

You need to install libasound2-dev at first. Then you can install simpleaudio.

  1. sudo apt-get install libasound2-dev
  2. pip install simpleaudio

Though this question is asked for windows, this process solves the problem for linux user.

0
radekszarecki On

(Win10) I had the same problem. Confirm that Bhavya Parikh solution works.

cmd open as admin change direction to folder where You get file a than:

pip install simpleaudio‑1.0.4‑cp39‑cp39‑win_amd64.whl