- 创建conda环境并激活
conda create -n mmdet python=3.7
conda activate mmdet
- pip安装torch
pip install torch==1.6.0 torchvision==0.7.0 -i https://mirrors.aliyun.com/pypi/simple
- 进入mmdetection目录
pip install mmcv -i https://mirrors.aliyun.com/pypi/simple
python setup.py develop