错误提示:
File "*****.py", line 23, in
data = np.load('path')
File "/home/***/.conda/envs/***/lib/python3.7/site-packages/numpy/lib/npyio.py", line 447, in load
pickle_kwargs=pickle_kwargs)
File "/home/***/.conda/envs/***/lib/python3.7/site-packages/numpy/lib/format.py", line 696, in read_array
raise ValueError("Object arrays cannot be loaded when "
ValueError: Object arrays cannot be loaded when allow_pickle=False
出错的地方就是这一行:
data = np.load('path')
修改为下面这个就跑通了:
data = np.load('path',allow_pickle=True)
就是加了个allow_pickle=True