File: installing.rst

package info (click to toggle)
bottleneck 1.3.5%2Bds1-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 828 kB
  • sloc: ansic: 4,361; python: 3,281; makefile: 65
file content (76 lines) | stat: -rw-r--r-- 1,725 bytes parent folder | download | duplicates (2)
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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
.. _installing:

Installing Bottleneck
=====================

As bottleneck aims to provide high-performance, optimized numerical functions
to all users, it is distributed as a source package (except via Anaconda) so
that local compilers can perform the relevant optimizations. Accordingly,
installation may take some additional steps compared to packages like numpy.

Anaconda
~~~~~~~~

If you wish to avoid additional steps, we recommend using Anaconda or
Miniconda. A pre-compiled version of bottleneck is installed by default.
Users looking for optimal performance may benefit from uninstalling the
pre-compiled version and following the steps below.

Build dependencies
~~~~~~~~~~~~~~~~~~

Debian & Ubuntu
---------------

The following build packages must be installed prior to installing bottleneck:

.. code-block::

   sudo apt install gcc python3-dev

The Python development headers can be excluded if using Anaconda.

RHEL, Fedora & CentOS
---------------------

.. code-block::

   sudo yum install gcc python3-devel

Windows
-------

The Python Wiki maintains detailed instructions on which Visual Studio
version to install here: https://wiki.python.org/moin/WindowsCompilers


pip & setuptools
~~~~~~~~~~~~~~~~

bottleneck leverages :pep:`517` and thus we generally recommend updating
pip and setuptools before installing to leverage recent improvements.

With Anaconda:

.. code-block::

   conda update setuptools pip

And with pip:

.. code-block::

   pip install --upgrade setuptools pip


Installation
~~~~~~~~~~~~

Finally, simply install with:

.. code-block::

   pip install bottleneck

If you encounter any errors, please open an issue on our GitHub
page: https://github.com/pydata/bottleneck/issues