@@ -24,13 +24,24 @@ Stable versions are available as tagged releases on GitHub, or as versioned rele
24
24
25
25
There are several ways to install ` PathML ` :
26
26
27
- 1 . ` pip install ` from PyPI ( ** recommended for users ** )
28
- 2 . Clone repo to local machine and install from source (recommended for developers/contributors)
27
+ 1 . ` pip install ` from PyPI
28
+ 2 . Clone repo to local machine and install from source
29
29
3 . Use the PathML Docker container
30
30
31
- Options (1) and (2) require that you first install all external dependencies:
32
- * openslide
33
- * JDK 8
31
+ Option (1) is recommended for most users. It will install the latest versions of most packages.
32
+ Option (2) is a deterministic environment setup, meaning that all package versions are pinned and it will install the
33
+ pinned version of a package even if it is not the newest. The automated testing suite is run in this environment. This
34
+ is the suggested installation method for users wanting to interface with the Mesmer model for IF workflows, and for
35
+ contributors/developers. Option (3) uses the same environment from (2), but in a Docker
36
+ container.
37
+
38
+ Options (1) and (2) require that you first install all external dependencies (namelt, JDK-8 and system libraries used
39
+ by OpenSlide and OpenCV):
40
+
41
+ * Install external dependencies (Linux) with [ Apt] ( https://ubuntu.com/server/docs/package-management ) :
42
+ ````
43
+ sudo apt-get update && sudo apt-get install openslide-tools g++ gcc libblas-dev liblapack-dev python3-opencv
44
+ ````
34
45
35
46
We recommend using conda for environment management.
36
47
Download Miniconda [here](https://docs.conda.io/en/latest/miniconda.html)
@@ -39,27 +50,12 @@ Download Miniconda [here](https://docs.conda.io/en/latest/miniconda.html)
39
50
40
51
## Installation option 1: pip install
41
52
42
- Create conda environment:
53
+ Create conda environment with dependencies :
43
54
````
44
- conda create --name pathml python=3.8
55
+ conda create --name pathml python=3.8 numpy=1.19.5 openjdk==8.0.152 -c conda-forge
45
56
conda activate pathml
46
57
````
47
58
48
- Install external dependencies (Linux) with [ Apt] ( https://ubuntu.com/server/docs/package-management ) :
49
- ````
50
- sudo apt-get install openslide-tools g++ gcc libblas-dev liblapack-dev
51
- ````
52
-
53
- Install external dependencies (MacOS) with [ Brew] ( www.brew.sh ) :
54
- ````
55
- brew install openslide
56
- ````
57
-
58
- Install [ OpenJDK 8] ( https://openjdk.java.net/ ) :
59
- ````
60
- conda install openjdk==8.0.152
61
- ````
62
-
63
59
Optionally install CUDA (instructions [here](#CUDA))
64
60
65
61
Install `PathML` from PyPI:
@@ -144,6 +140,17 @@ After installing PyTorch, optionally verify successful PyTorch installation with
144
140
python -c "import torch; print(torch.cuda.is_available())"
145
141
````
146
142
143
+ ## Troubleshooting installation
144
+
145
+ Installation can be fragile at times due to external dependencies.
146
+ If having difficulty installing, try the following:
147
+
148
+ * Look through the GitHub issues to see if someone else has run into the same problem before
149
+ * Ensure that the correct versions of all dependencies are installed
150
+ * Make sure to use a fresh conda environment
151
+ * Use pip's `--no-cache-dir` to prevent using cached files
152
+ * Use deterministic environment specifications such as those used in installation options (2) and (3)
153
+
147
154
# Using with Jupyter
148
155
149
156
Jupyter notebooks are a convenient way to work interactively. To use `PathML` in Jupyter notebooks:
0 commit comments