- Today
- Total
목록numpy (4)
작심삼일
에러 RuntimeError: Failed to import transformers.data.data_collator because of the following error (look up to see its traceback): 'MachAr' object has no attribute '_str_smallest_normal' AttributeError: 'MachAr' object has no attribute '_str_smallest_normal' 해결 방법 pip install numpy==1.23.1
에러 AttributeError: module 'numpy' has no attribute 'object'. 해결 방법 numpy 1.24.*버전에서 문제가 나는 것으로 짐작하고 있다. 다운그레이드 해주면 해결된다. pip install numpy==1.23.4
에러 ImportError: numpy.core.multiarray failed to import 해결 방법 numpy 버전을 업그레이드 한다. pip install -U numpy 그러면 이렇게 성공적으로 업그레이드 된다. Successfully installed numpy-1.24.2 하지만 난 그랬더니 이런 에러를 또 만났다. AttributeError: module 'numpy' has no attribute 'object'. 그래서 numpy 버전을 다운그레이드 해줬더니 최종적으로 해결됐다. pip install numpy==1.23.4
에러 ValueError: numpy.ndarray size changed, may indicate binary incompatibility. Expected 88 from C header, got 80 from PyObject 해결 방법 numpy 라이브러리를 업데이트하면 된다. pip install --upgrade numpy 또는 pip uninstall numpy pip install numpy