summaryrefslogtreecommitdiff
path: root/_doc/install.rst
blob: be3c4f479b5bd7bab21e26ade5a6084a3a117a44 (plain)
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
Installing
==========

``ruamel.yaml`` can be installed from PyPI_ using::

    pip install ruamel.yaml

There is a a commandline utility ``yaml`` available after installing::

   pip install ruamel.yaml.cmd

that allows for round-trip testing/re-indenting and conversion of YAML
files (JSON,INI,HTML tables)

Optional requirements
---------------------

If you have the C yaml library and headers installed, as well as
the header files for your Python executables then you can use the
non-roundtrip but faster C loader and emitter.

On Debian systems you should use::

    sudo apt-get install libyaml-dev python-dev python3-dev

you can leave out ``python3-dev`` if you don't use python3

For CentOS (7) based systems you should do::

   sudo yum install libyaml-devel python-devel