Skip to content

Commit 0cc8767

Browse files
committed
Update conda and mamba installations
1 parent fc421af commit 0cc8767

File tree

1 file changed

+4
-55
lines changed

1 file changed

+4
-55
lines changed

index.md

Lines changed: 4 additions & 55 deletions
Original file line numberDiff line numberDiff line change
@@ -116,30 +116,14 @@ You have three different options to install BiaPy. Choose one or another dependi
116116

117117
{% tabs command_line_installation %}
118118

119-
{% tab command_line_installation Option 1: Conda + pip %}
119+
{% tab command_line_installation Option 1: Conda %}
120120

121121
To use BiaPy via the command line, you will need to set up a ``conda`` environment. To do this, you will first need to install <a href="https://docs.conda.io/projects/conda/en/stable/" target="_blank" rel="noopener noreferrer">Conda</a>. Then you need to create a ``conda`` environment <a href="/add_ins/#open_terminal">through a terminal</a>:
122122

123123
```bash
124-
conda create -n BiaPy_env python=3.10
125-
conda activate BiaPy_env
126-
```
127-
128-
Then you will need to install <a href="https://pypi.org/project/biapy/" target="_blank" rel="noopener noreferrer">BiaPy package</a> and <a href="https://pytorch.org/get-started/locally/" target="_blank" rel="noopener noreferrer">Pytorch</a>:
129-
130-
```bash
131-
# Pytorch installation with GPU support: Pytorch 2.4.0 + CUDA 11.8
132-
pip install torch==2.4.0 torchvision==0.19.0 --index-url https://download.pytorch.org/whl/cu118
133-
134-
# Pytorch installation with ONLY CPU support: Pytorch 2.4.0
135-
pip install torch==2.4.0 torchvision==0.19.0 --index-url https://download.pytorch.org/whl/cpu
136-
137-
# Finally install BiaPy
138-
pip install biapy
124+
conda create -n biapy-env -c conda-forge biapy
139125
```
140126

141-
The PyPI package does not install <a href="https://pytorch.org/get-started/locally/" target="_blank" rel="noopener noreferrer">Pytorch</a> because there is no option to build that package specifying exactly the CUDA version you want to use. There are a few solutions to set up ``pyproject.toml`` with poetry and specify the CUDA version, as discussed <a href="https://github.com/python-poetry/poetry/issues/6409" target="_blank" rel="noopener noreferrer">here</a>, but then PyPI package can not be built (as stated <a href="https://peps.python.org/pep-0440/#direct-references" target="_blank" rel="noopener noreferrer">here</a>).
142-
143127
<!-- command_line_installation option 1 -->
144128
{% endtab %}
145129

@@ -154,45 +138,10 @@ If you don't have ``conda`` installed you can download <a href="https://github.c
154138
conda install mamba -n base -c conda-forge
155139
```
156140

157-
Afterwards, create a new <a href="https://docs.conda.io/projects/conda/en/stable/" target="_blank" rel="noopener noreferrer">Conda</a> environment with Python 3.10:
158-
159-
```bash
160-
mamba create -n BiaPy_env python=3.10
161-
mamba activate BiaPy_env
162-
```
163-
164-
Now you need to install <a href="https://pytorch.org/get-started/locally/" target="_blank" rel="noopener noreferrer">Pytorch</a> and related packages. Double check <a href="https://pytorch.org/get-started/locally/" target="_blank" rel="noopener noreferrer">Pytorch's official page</a> for its specific installation. For example, to install the lastest version of <a href="https://pytorch.org/get-started/locally/" target="_blank" rel="noopener noreferrer">Pytorch</a> with ``conda`` installation in Windows OS under CUDA 12.1:
165-
166-
```bash
167-
mamba install pytorch torchvision pytorch-cuda=12.1 -c pytorch -c nvidia
168-
```
169-
170-
Alternatively, for macOS it would be like this:
171-
172-
```bash
173-
mamba install pytorch::pytorch torchvision -c pytorch
174-
```
175-
176-
Install BiaPy Dependencies:
177-
178-
```bash
179-
mamba install pytz asciitree tzdata typer tqdm torchinfo tifffile threadpoolctl
180-
mamba install six Shapely scipy ruamel.yaml.clib pyparsing protobuf numcodecs lazy_loader kiwisolver
181-
mamba install joblib h5py fonttools fastremap fasteners cycler contourpy zarr=2.16.1 scikit-learn=1.4.0
182-
mamba install scikit-image ruamel.yaml python-dateutil pydot=1.4.2 pandas matplotlib xarray imgaug yaml
183-
mamba install bioimageio.spec bioimageio.core=0.9.0
184-
```
185-
186-
Install packages not available on conda-forge, so install it via pip:
187-
188-
```bash
189-
pip install fill-voids pytorch_msssim opencv-python opencv-python-headless imagecodecs==2024.1.1 "numpy>=2" pooch tensorboardX==2.6.2.2 yacs==0.1.8 edt==2.3.2
190-
```
191-
192-
Install BiaPy:
141+
Afterwards, create a new <a href="https://docs.conda.io/projects/conda/en/stable/" target="_blank" rel="noopener noreferrer">Conda</a> environment with BiaPy:
193142

194143
```bash
195-
pip install --no-deps biapy
144+
mamba create -n biapy-env -c conda-forge biapy
196145
```
197146

198147
<!-- command_line_installation option 2 -->

0 commit comments

Comments
 (0)