Skip to content

Commit 07743af

Browse files
Merge pull request #74 from computational-cell-analytics/update-mac-install
Update Mac Installation Guide
2 parents fdf6a2b + 544be4c commit 07743af

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

README.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -77,12 +77,13 @@ pip install -e .
7777
- On some systems `conda` is extremely slow and cannot resolve the environment in the step `conda env create ...`. You can use `mamba` instead, which is a faster re-implementation of `conda`. It can resolve the environment in less than a minute on any system we tried. Check out [this link](https://mamba.readthedocs.io/en/latest/installation.html) for how to install `mamba`. Once you have installed it, run `mamba env create -f <ENV_FILE>.yaml` to create the env.
7878
- Installation on MAC with a M1 or M2 processor:
7979
- The pytorch installation from `environment_cpu.yaml` does not work with a MAC that has an M1 or M2 processor. Instead you need to:
80-
- Create a clean environment: `conda create -c conda-forge python pip -n sam`
81-
- Activate it va `conda activate sam`
80+
- Create a new environment: `mamba create -c conda-forge python pip -n sam`
81+
- Activate it va `mamba activate sam`
8282
- Follow the instructions for how to install pytorch for MAC via conda from [pytorch.org](https://pytorch.org/).
83-
- Install additional dependencies: `conda install -c conda-forge napari python-elf tqdm`
83+
- Install additional dependencies: `mamba install -c conda-forge napari python-elf tqdm`
8484
- Install SegmentAnything: `pip install git+https://github.com/facebookresearch/segment-anything.git`
8585
- Install `micro_sam` by running `pip install -e .` in this folder.
86+
- **Note:** we have seen many issues with the pytorch installation on MAC. If a wrong pytorch version is installed for you (which will cause pytorch errors once you run the application) please try again with a clean `mambaforge` installation. Please install the `OS X, arm64` version from [here](https://github.com/conda-forge/miniforge#mambaforge).
8687

8788
## Usage
8889

0 commit comments

Comments
 (0)