Outspoken
Outspoken

Reputation: 23

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

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

Upvotes: 2

Views: 5915

Answers (4)

radekszarecki
radekszarecki

Reputation: 1

(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

Upvotes: 0

Rohit Joshi
Rohit Joshi

Reputation: 182

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.

Upvotes: 1

Bhavya Parikh
Bhavya Parikh

Reputation: 3400

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

Upvotes: 0

apr_1985
apr_1985

Reputation: 1962

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

Upvotes: 2

Related Questions