After installing packages with python and running a torch training script, I encountered the following error.
ValueError: numpy.ndarray size changed, may indicate binary incompatibility. Expected 88 from C header, got 80 from PyObject
This error occurred in
pycocotools package which was used by
My solution was to reinstall
pycocotools package with special options.
$ pip uninstall pycocotools $ pip install pycocotools --no-binary :all: --no-build-isolation
after this fix, the above error did not appear. My environment was CentOS7, python3.9.5, x64 machine.