Python で scikits.audiolab をインストールするときには注意が必要です。 コンパイルと実行の際にエラーの出る場合があります。
Environment
- Python 2.7
- Ubuntu 15.04
libsndfile
scikits.audiolab
is a wrapper libsndfile
, so libsndfile
is required for its installation.
If libsndfile
doesn’t exist, the following exception will raised.
sndfile (http://www.mega-nerd.com/libsndfile/) library not found.
Actually, libsndfile1-dev
should be installed.
1 |
sudo apt-get install libsndfile1-dev |
Alsa not found
The another exception can be raised on execution.
Alsa not found – alsa backend not build
First, install the package.
1 |
sudo apt-get install libasound2-dev |
And, reinstall the Python module, scikits.audiolab
.
1 |
pip install scikits.audiolab --force-reinstall |