关于一些报错
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
本文详细介绍了如何解决ModuleNotFoundError: No module named 'pycocotools'、TypeError: 'numpy.float64' object cannot be interpreted as an integer以及numpy版本不兼容等问题,包括使用pip安装不同版本的库和解决新版本带来的兼容性挑战。

解决办法:下载低版本numpy

被折叠的 条评论
为什么被折叠?



