You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/installation.rst
+54-46Lines changed: 54 additions & 46 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,30 +4,26 @@ Installation
4
4
************
5
5
6
6
Prerequisites
7
-
--------------
7
+
=============
8
8
The prerequisites for tiatoolbox installation are OpenSlide binaries and OpenJpeg version 2.3.0 or above.
9
9
Please follow the instructions below to install prerequisite software according to the platform you are using.
10
10
11
-
Using Anaconda (Recommended)
12
-
============================
13
-
14
-
After `installing Anaconda <https://docs.anaconda.com/anaconda/install/index.html>`_ (or miniconda), you can install TIA toolbox using the following command:
11
+
Linux (Ubuntu)
12
+
--------------
13
+
On Linux the prerequisite software can be installed using the command
15
14
16
15
.. code-block:: console
17
16
18
-
$ conda install -c conda-forge tiatoolbox
19
-
20
-
Please note that conda-forge installation support is limited on Windows as openslide binaries are not supported on official conda channels. An alternate way to install using conda on Windows could be to install it in `WSL2 with CUDA support <https://docs.microsoft.com/en-us/windows/ai/directml/gpu-cuda-in-wsl>`_. In some cases, WSL2 runs faster on Python codes and therefore we **recommend** this option.
If you cannot use Anaconda or are having trouble with it, you can try an alternative install method. We will install prerequisite binary packages and then use pip (the Python package manager) to install python dependencies.
19
+
The same command is used when working on the Colab or Kaggle platforms.
20
+
When working on Google Colab, we remove the packages ``datascience`` and ``albumentations`` because they conflict
21
+
and produce an error message.
26
22
27
-
Windows
28
-
^^^^^^^
23
+
Windows (10+)
24
+
-------------------
29
25
1. Download OpenSlide binaries from `this page <https://openslide.org/download/>`_. Extract the folder and add ``bin`` and ``lib`` subdirectories to
30
-
Windows `system path <https://docs.microsoft.com/en-us/previous-versions/office/developer/sharepoint-2010/ee537574(v=office.14)>`_.
26
+
Windows `system path <https://docs.microsoft.com/en-us/previous-versions/office/developer/sharepoint-2010/ee537574(v=office.14)>`_. If you are using a conda environment you can also copy ``bin`` and ``lib`` subdirectories to ``[Anaconda Installation Path]/envs/[tiatoolbox-environment]/Library/``.
31
27
32
28
2. Install OpenJPEG. The easiest way is to install OpenJpeg is through conda
33
29
using
@@ -36,73 +32,83 @@ using
36
32
37
33
C:\> conda install -c conda-forge openjpeg
38
34
39
-
3. Install
40
-
TIAToolbox.
41
-
42
-
.. code-block:: console
43
-
44
-
C:\> pip install tiatoolbox
45
-
46
-
Linux (Ubuntu)
47
-
^^^^^^^^^^^^^^
48
-
On Linux the prerequisite software can be installed using the command
If you already have setup a Python environment with all the pre-requisite software and dependencies installed and you would like to keep the existing versions of these dependencies, run this command in your terminal:
86
+
87
+
.. code-block:: console
88
+
89
+
$ pip install --no-deps tiatoolbox
90
+
99
91
If you don't have `pip`_ installed, this `Python installation guide`_ can guide
After installing `Anaconda <https://docs.anaconda.com/anaconda/install/index.html>`_ (or `miniconda <https://docs.conda.io/en/latest/miniconda.html>`_ / `mamba <https://mamba.readthedocs.io/en/latest/user_guide/mamba.html#mamba-vs-conda-clis>`_), you can install TIAToolbox using the following command:
105
+
106
+
.. code-block:: console
107
+
108
+
$ conda install -c conda-forge tiatoolbox
109
+
110
+
Please note that conda-forge installation support is limited on Windows as openslide binaries are not supported on official conda channels. An alternate way to install using conda on Windows could be to install it in `WSL2 with CUDA support <https://docs.microsoft.com/en-us/windows/ai/directml/gpu-cuda-in-wsl>`_. In some cases, WSL2 runs faster on Python codes and therefore we **recommend** this option.
111
+
106
112
From sources
107
113
------------
108
114
@@ -131,22 +137,24 @@ Once you have a copy of the source, you can install it with:
To run TIA toolbox in an isolated environment, use our `Docker image <https://github.com/tissueimageanalytics/tiatoolbox-docker/pkgs/container/tiatoolbox>`_ . We host different Dockerfiles in our github repository `tiatoolbox-docker <https://github.com/TissueImageAnalytics/tiatoolbox-docker>`_. Please report any issues related to the docker image in the repository `tiatoolbox-docker <https://github.com/TissueImageAnalytics/tiatoolbox-docker>`_.
137
143
138
144
After `installing Docker <https://docs.docker.com/get-docker/>`_ (or Docker Desktop), you can use our TIA toolbox image in 3 different ways.
139
145
140
-
Use the pre-built docker image
146
+
Use the Pre-Built Docker Image
141
147
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
142
-
1. Pull the image from the Github Container Registry
0 commit comments