-
Notifications
You must be signed in to change notification settings - Fork 148
/
INSTALL
77 lines (50 loc) · 1.73 KB
/
INSTALL
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 MAHOTAS
==================
From binary packages
--------------------
There are a few binary packages.
For **Windows**: Christoph Gohlke maintains binary packages at
https://www.lfd.uci.edu/~gohlke/pythonlibs/
For FreeBSD, there are ports packages at
https://www.freshports.org/graphics/mahotas/ Unfortunately, they may be slightly
out of date.
On NixOS, there are up-to-date packages available as ``pythonPackages.mahotas``
(packaged for Python 2.7, 3.4, and 3.5).
Using pip/easy_install
----------------------
Mahotas should install just fine with pip or easy_install. Either one of the
following should work::
pip install mahotas
easy_install mahotas
You will need to have numpy installed as well as a C++ compiler.
From source
-----------
You can use the simple::
python setup.py install
You need the numpy headers and a C++ compiler.
Runtime Dependencies
--------------------
Only **numpy** is required, except:
You will need a way to load images into numpy arrays. Try one of the following
packages
1. `imread <https://github.com/luispedro/imread>`__
2. matplotlib
3. Freeimage
If you are running tests, ``scipy`` is sometimes used (as a comparison). It is
otherwise not used in mahotas (since version 0.7).
Compilation Dependencies
------------------------
You need numpy, the Python headers, and a C++ compiler.
Below, you can find information on specific Linux distributions. These will
install mahotas system-wide with all necessary dependencies.
Ubuntu
~~~~~~
::
sudo apt-get install python-dev python-numpy g++ python-pip
sudo pip install mahotas
Red Hat and Amazon Linux
~~~~~~~~~~~~~~~~~~~~~~~~
::
sudo yum -y install gcc-c++ numpy python-devel
sudo easy_install mahotas