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 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111
|
Anaconda Python Distribution (Recommended)
==========================================
**Platforms:** MacOS X, Linux, and Windows
We recommend using the `Anaconda <https://www.anaconda.com/download/>`__ Python
distribution from Continuum Analytics (or the related Miniconda distribution).
Anaconda includes all of Glue's main dependencies. There are two ways of
installing Glue with the Anaconda Python Distribution: :ref:`graphically using the
Anaconda Navigator <anaconda_gui>`, or :ref:`using the conda command
<anaconda_cli>` on the command-line, both of which are described
below.
.. _anaconda_cli:
Command-line installation
-------------------------
We recommend installing glue using the ``conda`` command on the command-line
rather than using the :ref:`anaconda_gui`, because errors are more visible on
the command-line if you run into any issues during the installation. Once
Anaconda (or Miniconda) is installed, open a terminal, and type::
conda install -c glueviz glueviz=0.14
This will install the latest version of glue from the ``glueviz`` conda channel.
If this command does not work for any reason, you may need to update the version
of conda you are using -- you can do this with::
conda update -n root conda
Once you do this, try installing the glueviz package as above. If this still
doesn't work, see the `Troubleshooting`_ section below.
To update glue in future, use the same install command as above.
.. _anaconda_gui:
Graphical User Interface
------------------------
If you prefer to not use the command-line to install glue, you can also use the
Anaconda navigator, but be aware that it is harder to diagnose issues when
things go wrong (the navigator can sometimes silently fail). Once Anaconda is
installed, go to the **Applications** folder and launch the **Anaconda
Navigator**:
.. image:: images/navigator_icon.png
:align: center
:width: 80
If you do not have the Anaconda Navigator icon, but have an Anaconda Launcher,
you are using an old version of Anaconda, and we recommend that you update to
the latest version.
Assuming you have the navigator open, before installing glue first click on the
**Channels** button:
.. image:: images/navigator_channels_button.png
:align: center
:width: 373
If not already present, add **glueviz** to the list of channels by clicking
on **Add**, typing **glueviz**, and pressing enter, then click on **Update
channels**:
.. image:: images/navigator_channels_dialog.png
:align: center
:width: 414
You can now install the latest version of glue by clicking on **Install**:
.. image:: images/navigator_install.png
:align: center
:width: 264
Once the installation is complete, you can click on the **Launch** button (which
will replace the **Install** button). If updates become available in future,
these should be shown in the Navigator.
Troubleshooting
---------------
If you managed to install glue but it does not launch or you have issues with
viewers not being available or not working correctly, the first thing to try
is to update all your existing conda packages using::
conda update -c glueviz --all
In some cases, glue won't even install due to conflicts between the version of
dependencies required by glue and that required by other packages. The easiest
way to avoid this is to install glue in a separate environment. To do this,
first create an environment in which you will install glue::
conda create -n glueviz-env python
This will create an environment called ``glueviz`` in which Python will be
installed. You only need to create the environment once. Once created, you can
switch to the environment with::
source activate glueviz-env
Then, install glue as indicated in :ref:`anaconda_cli` using::
conda install -c glueviz glueviz
Whenever you open a new terminal, if you want to run glue you should then
remember to switch to the ``glueviz-env`` environment using the ``source
activate`` command above. If you want to update glue, run the installation
command again inside the environment.
|