安装cv2,国内镜像版
pip install opencv-python -i https://pypi.tuna.tsinghua.edu.cn/simple
或者直接进清华镜像源网页下载对应的包
https://pypi.tuna.tsinghua.edu.cn/simple/opencv-python/
再pip install opencv_python-4.5.4.58-cp37-cp37m-manylinux2014_x86_64.whl
安装pycocotools
先 pip install cython
linux版:pip install git+https://github.com/philferriere/cocoapi.git#subdirectory=PythonAPI
windows版:https://blog.csdn.net/HFsdb1/article/details/116124052?spm=1001.2014.3001.5501