Python 3.6: How To Install Rubberband?
I want to use this function, and I'm trying to install rubberband using pip as the following: pip install rubberband But, it raises the following error: 'Failed building wheel for
Solution 1:
The docs you pointed to are the docs for the project pyrubberband, not rubberband. So install it with pip install pyrubberband.
As for rubberband: you probably need a C/C++ compiler to install it.
Upd. pyrubberband is a Python wrapper for rubberband. You need to install it, see https://breakfastquay.com/rubberband/index.html
Solution 2:
To make a long story short, this is how I installed the rubberband python package.
apt updateapt-get install libsndfile-devapt-get install librubberband-devpython3 -m pip install numpy(required for rubberband)
Note that the -dev postfix is required to get the header files that are later required for the python rubberband package to be able to compile the package.
Later, pip install rubberband failed on transform is not a member of std.
To solve that, I did the following:
python3 -m pip download rubberbandtar -xf rubberband-1.0.2.tar.gz- edit
rubberband-1.0.2/src/numpy.cpp- add#include <algorithm>at the top of the file. - cd
rubberband-1.0.2and then runpython3 -m pip install .or better yetpython setup.py bdist_wheel --universalto create a whl file to add to your docker dependencies.
Post a Comment for "Python 3.6: How To Install Rubberband?"