File: install.rst

package info (click to toggle)
python-rtree 1.4.1-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 444 kB
  • sloc: python: 3,434; makefile: 97; sh: 52
file content (56 lines) | stat: -rw-r--r-- 1,252 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
.. _installation:

Installation
------------------------------------------------------------------------------

\*nix
..............................................................................

First, download and install version 1.8.5+ of the `libspatialindex`_ library from:

https://libspatialindex.org

The library supports CMake builds, so it is a matter of:

.. code-block:: console

  $ mkdir build && cd build
  $ cmake ..
  $ cmake --build . -j
  $ cmake --install .

You may need to run the ``ldconfig`` command after installing the library to
ensure that applications can find it at startup time.

Rtree can be easily installed via pip:

.. code-block:: console

  $ pip install rtree

or by running in a local source directory:

.. code-block:: console

  $ pip install -e .

You can build and test in place like:

.. code-block:: console

  $ pytest

Windows
..............................................................................

The Windows DLLs of `libspatialindex`_ are pre-compiled in
windows installers that are available from `PyPI`_.  Installation on Windows
is as easy as:

.. code-block:: console

  $ pip install rtree


.. _`PyPI`: https://pypi.org/project/rtree/
.. _`libspatialindex`: https://libspatialindex.org