File ~/anaconda3/envs/python3.10.12/lib/python3.10/site-packages/joblib/numpy_pickle.py:577, in _unpickle(fobj, filename, mmap_mode)
575 obj = None
576 try:
–> 577 obj = unpickler.load()
578 if unpickler.compat_mode:
579 warnings.warn("The file ‘%s’ has been generated with a "
580 "joblib version less than 0.10. "
581 “Please regenerate this pickle file.”
582 % filename,
583 DeprecationWarning, stacklevel=3)
…
153 else:
154 numpy_array_alignment_bytes =
155 self.safe_get_numpy_array_alignment_bytes()
TypeError: __randomstate_ctor() takes from 0 to 1 positional arguments but 2 were given
解决方法
- 检查python版本是否一致
- 检查numpy版本是否一致