一、出现问题及解决措施
如果出现以上错误,安装对应的错误补齐相应的包即可。
首先执行python -m pip install --update pip
**在命令行中下载包不成功,可以去网上搜索相应的下载渠道。通过浏览器下载下来从而避开命令行的下载。**之后在命令行中进入下载的包的文件夹,执行pip install package name
这里提供我的报错的相应安装包
选择相应版本进行安装,安装好这个之后,此时应该能够解决
ERROR: Failed building wheel for pycocotools
https://pypi.tuna.tsinghua.edu.cn/simple/pycocotools-windows/
https://pypi.tuna.tsinghua.edu.cn/simple/onnx/
二、安装之前所做步骤
1.将microsoft visual c++下载好
2.执行以下命令
conda install pytorch==1.9.1 torchvision torchaudio cudatoolkit=10.2
pip install mmcv-full==1.3.13
git clone https://github.com/open-mmlab/mmdetection.git
cd mmdetection
pip install -r requirements.txt
python setup.py develop
git clone https://github.com/open-mmlab/mmdetection.git
cd mmdetection
pip install -r requirements.txt
python setup.py develop
当你解决上述大部分问题之后,最后执行
pip install mmdet便能解决问题。
总结:
1.将conda 与 pip命令相结合。
2.自己下载好一些命令无法下载的依赖
参考
https://github.com/philferriere/cocoapi
https://github.com/remark-able-sz/MMdetection3d_Install