我跑步时
pd.read_hdf('xxx')
我知道了
cannot set WRITABLE flag to True of this array
。我找到了解决方案here,建议将numpy的版本从1.16.0降级到1.15.x
但是,将numpy降级为1.15.4后,会出现新错误
No module named 'numpy.core._multiarray_umath'
。对于此错误,有人suggests会将numpy升级到1.16.0。
有人遇到同样的问题吗?
答案 0 :(得分:0)
如果您使用jupyter笔记本电脑或Google Colaboratory,请在导入numpy模块并重新启动内核或运行时之前使用!pip install numpy==1.15.0
。我遇到了同样的问题,并以这种方式解决了。