关于一些报错
ModuleNotFoundError: No module named ‘pycocotools’
解决办法:
pip install -U cython
pip install “git+https://github.com/philferriere/cocoapi.git#egg=pycocotools&subdirectory=PythonAPI”
参考:
TypeError: ‘numpy.float64’ object cannot be interpreted as an integer
解决办法:下载低版本numpy
pip show numpy
pip install -U numpy==1.17.0 -i https://pypi.tuna.tsinghua.edu.cn/simple
参考:https://blog.youkuaiyun.com/qq_40092110/article/details/105242996
出现新版本不兼容报错:
ValueError: numpy.ndarray size changed, may indicate binary incompatibility. Expected 88 from C header, got 80 from PyObject
解决办法:下载1.20以上的numpy
pip install -U numpy==1.20.1-i https://pypi.tuna.tsinghua.edu.cn/simple
参考:https://www.machunjie.com/trouble/code_error/952.html