13
13
Installation
14
14
************
15
15
16
- NiBabel is a pure python package at the moment, and it should be easy to get
16
+ NiBabel is a pure Python package at the moment, and it should be easy to get
17
17
NiBabel running on any system. For the most popular platforms and operating
18
18
systems there should be packages in the respective native packaging format
19
19
(DEB, RPM or installers). On other systems you can install NiBabel using
20
- `` easy_install `` or by downloading the source package and running the usual
21
- `` python setup.py install ``.
20
+ pip _ or by downloading the source package and running the usual `` python
21
+ setup.py install ``.
22
22
23
23
.. This remark below is not yet true; comment to avoid confusion
24
24
To run all of the tests, you may need some extra data packages - see
@@ -29,17 +29,23 @@ Installer and packages
29
29
30
30
.. _install_pypi :
31
31
32
- The python package index
33
- ------------------------
32
+ pip and the Python package index
33
+ --------------------------------
34
34
35
- NiBabel is available via ` pypi `_ . If you already have setuptools _ or
36
- distribute _ installed, you can run::
35
+ By far the best way to install NiBabel is via pip _ . If you don't have pip
36
+ already, follow the ` pip install instructions `_.
37
37
38
- easy_install nibabel
38
+ Then open a terminal (Terminal.app on OSX, cmd or Poweshell on Windows), and
39
+ type::
39
40
40
- to download nibabel and its dependencies. Alternatively go to the `nibabel
41
- pypi `_ page and select the source distribution you want. Download the
42
- distribution, unpack it, and then, from the unpacked directory, run::
41
+ pip install nibabel
42
+
43
+ This will download and install NiBabel.
44
+
45
+ If you really like doing stuff manually, you can install NiBabel by downoading
46
+ the source from `NiBabel pypi `_ . Go to this page and select the source
47
+ distribution you want. Download the distribution, unpack it, and then, from
48
+ the unpacked directory, run::
43
49
44
50
python setup.py install
45
51
@@ -52,15 +58,13 @@ or (if you need root permission to install on a unix system)::
52
58
Debian/Ubuntu
53
59
-------------
54
60
55
- NiBabel is available as a ` NeuroDebian package `_. Please follow the instructions
56
- on the NeuroDebian _ website on how access their repositories. Once this is done,
57
- installing NiBabel is::
61
+ Our friendas at NeuroDebian _ have packaged NiBabel at ` NiBabel NeuroDebian `_.
62
+ Please follow the instructions on the NeuroDebian _ website on how to access
63
+ their repositories. Once this is done, installing NiBabel is::
58
64
59
65
apt-get update
60
66
apt-get install python-nibabel
61
67
62
- .. _NeuroDebian package : http://neuro.debian.net/pkgs/python-nibabel.html
63
-
64
68
Install from source
65
69
===================
66
70
@@ -71,7 +75,7 @@ Requirements
71
75
------------
72
76
73
77
* Python _ 2.6 or greater
74
- * NumPy _ 1.2 or greater
78
+ * NumPy _ 1.5 or greater
75
79
* SciPy _ (for full SPM-ANALYZE support)
76
80
* PyDICOM _ 0.9.7 or greater (for DICOM support)
77
81
* `Python Imaging Library `_ (for PNG conversion in DICOMFS)
@@ -81,11 +85,11 @@ Requirements
81
85
Get the sources
82
86
---------------
83
87
84
- The latest release is always available from `nibabel pypi `_.
88
+ The latest release is always available from `NiBabel pypi `_.
85
89
86
90
Alternatively, you can download a tarball of the latest development snapshot
87
91
(i.e. the current state of the *master * branch of the NiBabel source code
88
- repository) from the `nibabel github `_ page.
92
+ repository) from the `NiBabel github `_ page.
89
93
90
94
If you want to have access to the full NiBabel history and the latest
91
95
development code, do a full clone (aka checkout) of the NiBabel
@@ -95,9 +99,9 @@ repository::
95
99
96
100
or::
97
101
98
- git clone http ://github.com/nipy/nibabel.git
102
+ git clone https ://github.com/nipy/nibabel.git
99
103
100
- (The first will be faster, the second more likely to work behind a firewall).
104
+ (The first may be faster, the second more likely to work behind a firewall).
101
105
102
106
Installation
103
107
------------
@@ -110,10 +114,9 @@ If sudo is not configured (or even installed) you might have to use
110
114
``su `` instead.
111
115
112
116
Now fire up Python and try importing the module to see if everything is fine.
113
- It should look similar to this::
114
-
117
+ It should look something like this::
115
118
116
- Python 2.7.3 (v2.7.3:70274d53c1dd, Apr 9 2012, 20:52:43 )
119
+ Python 2.7.8 (v2.7.8:ee879c0ffa11, Jun 29 2014, 21:07:35 )
117
120
[GCC 4.2.1 (Apple Inc. build 5666) (dot 3)] on darwin
118
121
Type "help", "copyright", "credits" or "license" for more information.
119
122
>>> import nibabel
0 commit comments