how to install minian for an M1/M2 Mac

211 views
Skip to first unread message

Ariel Cohen

unread,
Nov 6, 2023, 2:33:41 PM11/6/23
to Miniscope
Hello everyone,

In case anyone is having difficulty running minian on an M1/M2 Mac, we have recently solved this issue, and the solution is here below. The reason for the installation errors with minian, as it stands, is that it is only formatted for osx64 and not arm64 on conda-forge. Install anaconda or miniconda normally, then run the following lines into your terminal to create an osx64 environment for minian on your M1/M2 Mac:

conda update conda

conda config --add channels conda-forge

xcode-select --install

softwareupdate --install-rosetta


CONDA_SUBDIR=osx-64 conda create -n minian python=3.8

conda activate minian

conda config --env --set subdir osx-64

conda install mamba -c conda-forge


mamba install -y -c conda-forge minian


**(if you are encountering an error here, I got around this by removing the > symbols from the dependencies, and installing them all together as follows)


mamba install -y -c conda-forge bokeh=1.4.0 cvxpy=1.1.11 dask=2021.2.0 datashader=0.12.1 distributed=2021.2.0 ecos=2.0.7 ffmpeg ffmpeg-python=0.2.0 fftw holoviews=1.12.7 jupyter matplotlib-base=3.2 natsort netcdf4 networkx=2.4 numba=0.52.0 numpy=1.20.2 opencv=4.2.0 pandas=1.2.3 panel=0.8.0 param=1.9 pyfftw=0.12.0 python=3.8 scikit-image=0.18.1 scikit-learn=0.22.1 scipy=1.4.1 scs simpleitk=2.0.2 sk-video statsmodels=0.11.1 tifffile xarray=0.16.2 zarr sparse=0.11.2 pymetis=2020.1 rechunker=0.3.3 medpy=0.4.0 jinja2=2.11.3


Cheers,



Ariel

Reply all
Reply to author
Forward
0 new messages