5
5
Installation
6
6
============
7
7
8
- There are many ways to install Python and Gammapy as a user. On this page we list the most common ones.
9
- In general **we recommend to use virtual environments ** when using Gammapy. This ways you have full
10
- control over additional packages that you may use in your analysis and you work with
11
- well defined computing environments, that you can share and allow **reproducibility of your
12
- scientific analysis results **. If you want to learn about using virtual environments see :ref: `virtual-envs `.
13
- You can also :ref: ` install Gammapy for development < dev_setup >`.
8
+ There are numerous ways to install Python and Gammapy as a user. On this page, we list the most common ones.
9
+ In general, **we recommend using ** :ref: ` virtual environments < virtual-envs >` when using Gammapy. This
10
+ way you have complete control over the additional packages that you may use in your analysis and you work with
11
+ well defined computing environments. This enables you to easily share your work and ensure **reproducibility of your
12
+ scientific analysis results **. You can also :ref: `install Gammapy for development < dev_setup > `.
13
+
14
14
15
15
.. _anaconda :
16
16
@@ -35,28 +35,28 @@ To install a specific version of Gammapy just execute:
35
35
36
36
.. code-block :: bash
37
37
38
- $ conda install -c conda-forge gammapy=0.19
38
+ $ conda install -c conda-forge gammapy=1.0
39
39
40
- If you encountered any issues you can check the :ref: `troubleshoot ` guide.
40
+ If you encounter any issues you can check the :ref: `troubleshoot ` guide.
41
41
42
42
Using Mamba
43
43
-----------
44
44
Alternatively, you can use `Mamba <https://mamba.readthedocs.io/ >`__ for the installation.
45
- Mamba is an alternative package manager that support most of conda’s command but offers higher installation
45
+ Mamba is an alternative package manager that supports most of conda’s commands but offers higher installation
46
46
speed and more reliable environment solutions. To install ``mamba `` in the Conda base environment:
47
47
48
48
.. code-block :: bash
49
49
50
50
$ conda install mamba -n base -c conda-forge
51
51
52
- then :
52
+ Then install Gammapy through :
53
53
54
54
.. code-block :: bash
55
55
56
56
$ mamba install gammapy
57
57
58
- Mamba supports of the commands that are available for conda. So updating and installing specific versions
59
- works the same way as above except for replacing the ``conda `` with the ``mamba `` command.
58
+ Mamba supports the same commands available in conda. Therefore, updating and installing specific versions
59
+ follows the same process as above, just simply replace the ``conda `` command with the ``mamba `` command.
60
60
61
61
.. _install-pip :
62
62
@@ -71,13 +71,6 @@ using `pip`_:
71
71
$ python -m pip install gammapy
72
72
73
73
This will install Gammapy with the required dependencies only.
74
-
75
- .. note ::
76
-
77
- For Apple silicon M1 (`arm64 `) architectures you also have to open the
78
- environment file and delete the `sherpa ` entry, as currently there are
79
- no conda packages available. However you can later install `sherpa `
80
- in the environment using `python -m pip install sherpa `.
81
74
82
75
To install Gammapy with all optional dependencies, you can specify:
83
76
@@ -86,33 +79,33 @@ To install Gammapy with all optional dependencies, you can specify:
86
79
$ python -m pip install gammapy[all]
87
80
88
81
89
- To update an existing installation you can use:
82
+ To update an existing installation use:
90
83
91
84
.. code-block :: bash
92
85
93
86
$ python -m pip install gammapy --upgrade
94
87
95
- To install a specific version of Gammapy you can use:
88
+ To install a specific version of Gammapy use:
96
89
97
90
.. code-block :: bash
98
91
99
- $ python -m pip install gammapy==0.19
92
+ $ python -m pip install gammapy==1.0
100
93
101
- To install the current Gammapy **development ** version using `pip `_ you can use:
94
+ To install the current Gammapy **development ** version with `pip `_ use:
102
95
103
96
.. code-block :: bash
104
97
105
98
$ python -m pip install git+https://github.com/gammapy/gammapy.git#egg=gammapy
106
99
107
- Or like this, if you want to study or edit the code locally:
100
+ If you want to study or edit the code locally, use the following :
108
101
109
102
.. code-block :: bash
110
103
111
104
$ git clone https://github.com/gammapy/gammapy.git
112
105
$ cd gammapy
113
106
$ python -m pip install .
114
107
115
- If you encountered any issues you can check the :ref: `troubleshoot ` guide.
108
+ If you encounter any issues you can check the :ref: `troubleshoot ` guide.
116
109
117
110
.. _install-other :
118
111
@@ -138,8 +131,8 @@ Example:
138
131
python3-pip python3-matplotlib \
139
132
ipython3-notebook python3-gammapy
140
133
141
- $ python3 -m pip install antigravity
134
+ $ python3 -m pip install gammapy
142
135
143
136
Note that the Linux package managers typically have release cycles of 6 months,
144
137
or yearly or longer, meaning that you'll typically get an older version of
145
- Gammapy. But you can always get a recent version via `pip ` or `conda ` (see above).
138
+ Gammapy. However, you can always get the recent version via `pip ` or `conda ` (see above).
0 commit comments