Reputation: 139
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 rubberband"
And I can't use Python 3.5 in my project. So, how to install rubberband?
P.S. My OS is Windows 10, and I have python 3.6 on it.
Upvotes: 3
Views: 6254
Reputation: 1
Install "rubberband-cli" Package on Ubuntu:
sudo apt-get update -y
sudo apt-get install -y rubberband-cli
Upvotes: -1
Reputation: 1059
If you ran through this and using macOS
, brew for everything works
$
brew install rubberband
Works like charm https://formulae.brew.sh/formula/rubberband
Upvotes: -1
Reputation: 163
To make a long story short, this is how I installed the rubberband python package.
apt update
apt-get install libsndfile-dev
apt-get install librubberband-dev
python3 -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 rubberband
tar -xf rubberband-1.0.2.tar.gz
rubberband-1.0.2/src/numpy.cpp
- add #include <algorithm>
at the top of the file.rubberband-1.0.2
and then run python3 -m pip install .
or better yet python setup.py bdist_wheel --universal
to create a whl file to add to your docker dependencies.Upvotes: 2
Reputation: 94827
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
Upvotes: 1