hamiltron/py-simple-audio

installation error

Opened this issue · 6 comments

when trying to install simple audio in VS code, it gives an error:
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/
[end of output]

ERROR: Failed building wheel for simple audio

Failed to build simple audio
ERROR: Could not build wheels for simple audio, which is required to install py project.toml-based projects

Help please

Yomiia commented

same error here, even after installing visual c++

same here, also installed Visual Studio Build Tools and C++ v. 14
image

The error message suggests that there was a problem building the simpleaudio package, which is needed to install the package. This is a common error when trying to install packages on Windows machines, and there are a few steps you can take to try and fix it.

Check that you have the latest version of pip installed by running pip install --upgrade pip.

Install the Microsoft Visual C++ Build Tools by downloading and running the installer from this link: https://visualstudio.microsoft.com/visual-cpp-build-tools/. Make sure to select the "C++ build tools" option when prompted.

Install the Microsoft Visual Studio Redistributable for Visual Studio 2015, 2017, and 2019 by downloading and running the installer from this link: https://support.microsoft.com/en-us/topic/the-latest-supported-visual-c-downloads-2647da03-1eea-4433-9aff-95f26a218cc0.

Try installing simpleaudio again by running pip install simpleaudio.

If the above steps do not work, you can try installing simpleaudio using a pre-built wheel file. First, download the appropriate wheel file for your Python version and architecture from here: https://www.lfd.uci.edu/~gohlke/pythonlibs/#simpleaudio. Then, install the wheel file using pip install <wheel_file_name>.whl.

If none of these steps work, you may need to investigate further to determine the cause of the build failure. You can try running pip install with the -v flag to see more verbose output, which may help you identify the issue.

try to install simpleaudio-1.0.4-cp310-cp310-win_amd64.whl

note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building wheel for simpleaudio
Running setup.py clean for simpleaudio
Failed to build simpleaudio
ERROR: Could not build wheels for simpleaudio, which is required to install pyproject.toml-based projects

Problem when trying to install SimpleAudio by the command "pip install simpleaudio" (without double quotation marks)


problem when testing solutions

No linha:1 caractere:13

  • pip install <wheel_file_name>.whl
  •         ~
    

Operador '<' reservado para uso futuro.
+ CategoryInfo : ParserError: (:) [], ParentContainsErrorRecordException
+ FullyQualifiedErrorId : RedirectionNotSupported