[英]pd.read_hdf throws 'cannot set WRITABLE flag to True of this array' and 'No module named 'numpy.core._multiarray_umath'
When I run 当我跑步
pd.read_hdf('xxx')
I got 我有
cannot set WRITABLE flag to True of this array
. 。 I found solution here which suggest to downgrade numpy from 1.16.0 to 1.15.x
我在这里找到了建议将numpy从1.16.0降级到1.15.x的解决方案
However, after downgrading numpy to 1.15.4, a new error comes 但是,将numpy降级为1.15.4后,会出现新错误
No module named 'numpy.core._multiarray_umath'
. 。 For this error, someone suggests to upgrade numpy to 1.16.0 .
对于此错误,有人建议将numpy升级到1.16.0。
Anyone encounter the same problem? 有人遇到同样的问题吗?
If you use jupyter notebook or Google Colaboratory use !pip install numpy==1.15.0
before import numpy module and restart kernal or runtime. 如果您使用jupyter笔记本电脑或Google Colaboratory,请使用
!pip install numpy==1.15.0
在导入numpy模块之前!pip install numpy==1.15.0
并重新启动内核或运行时。 I had the same problem and solved it in this way. 我遇到了同样的问题,并以这种方式解决了。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.