M1安装mmcv
安装mmcv
尝试官方方法,安装出现错误,我尝试的有效方法
环境:虚拟环境+M1 macbook air
git clone https://github.com/open-mmlab/mmcv.git
cd mmcv
CC=clang CXX=clang++ CFLAGS='-stdlib=libc++' MMCV_WITH_OPS=1 sudo pip install -e .
这个方法没有尝试,上面的方法不行可以试一下(M1)
{torch_version}中填自己的torch版本
终端输入python,然后输入import torch torch.version
# 使用预编译包安装,{torch_version} 根据自身需求替换成实际的版本号
pip install mmcv-full=={mmcv_version} -f https://download.openmmlab.com/mmcv/dist/cpu/{torch_version}/index.html