File: install.rst

package info (click to toggle)
python-librosa 0.11.0-5
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 166,732 kB
  • sloc: python: 21,731; makefile: 141; sh: 2
file content (60 lines) | stat: -rw-r--r-- 1,612 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
Installation instructions
^^^^^^^^^^^^^^^^^^^^^^^^^

pypi
~~~~
The simplest way to install *librosa* is through the Python Package Index (PyPI).
This will ensure that all required dependencies are fulfilled.
This can be achieved by executing the following command::

    pip install librosa

or::

    sudo pip install librosa

to install system-wide, or::

    pip install -u librosa

to install just for your own user.

conda
~~~~~
If you use conda/Anaconda environments, librosa can be installed from the 
`conda-forge` channel::

    conda install -c conda-forge librosa

Source
~~~~~~

If you've downloaded the archive manually from the `releases
<https://github.com/librosa/librosa/releases/>`_ page, you can install using the
`setuptools` script::

    tar xzf librosa-VERSION.tar.gz
    cd librosa-VERSION/
    python setup.py install

If you intend to develop librosa or make changes to the source code, you can
install with `pip install -e` to link to your actively developed source tree::

    tar xzf librosa-VERSION.tar.gz
    cd librosa-VERSION/
    pip install -e .

Alternately, the latest development version can be installed via pip::

    pip install git+https://github.com/librosa/librosa


ffmpeg
~~~~~~

To fuel `audioread` with more audio-decoding power, you can install *ffmpeg* which
ships with many audio decoders.  Note that conda users on Linux and OSX will
have this installed by default; Windows users must install ffmpeg separately.

OSX users can use *homebrew* to install ffmpeg by calling
`brew install ffmpeg` or get a binary version from their website https://www.ffmpeg.org.