mmaction2 icon indicating copy to clipboard operation
mmaction2 copied to clipboard

Installation fails on macbook m2 [Docs]

Open lizaibeim opened this issue 1 year ago • 0 comments

The doc issue

Hi, I am trying to install the mmaction2 on my Macbook with M2 chips.

I follow the installation commands as follow:

conda create --name openmmlab python=3.8 -y
conda activate openmmlab
conda install pytorch torchvision cpuonly -c pytorch
pip install -U openmim
mim install mmengine
mim install mmcv

Then, I try to install the mmaction2 with the command

cd mmaction2
pip install -v -e .
# "-v" means verbose, or more output
# "-e" means installing a project in editable mode,
# thus any local modifications made to the code will take effect without re-installation.

However, it fails because one of the required packages decord is not compatible with python version 3.8.18.

Suggest a potential alternative/fix

I found that the decord only supports up to python3.8 dmlc/decord#213, and I try the solution given by eva-decord. Thus, I replaced the decord >= 0.4.1 with eva-decord >= 0.4.1 in mmaction2/requirement/build.txt file and reran the install command and it works.

I don't know whether replacing the decrod with eva-decord will impact further usage of training and inferencing.

Thanks in advance for your help.

lizaibeim avatar Feb 14 '24 13:02 lizaibeim