繁体   English   中英

pd.read_hdf抛出“无法将此数组的WRITABLE标志设置为True”和“没有名为“ numpy.core._multiarray_umath”的模块”

[英]pd.read_hdf throws 'cannot set WRITABLE flag to True of this array' and 'No module named 'numpy.core._multiarray_umath'

当我跑步

pd.read_hdf('xxx')

我有

cannot set WRITABLE flag to True of this array

我在这里找到建议将numpy从1.16.0降级到1.15.x的解决方案

但是,将numpy降级为1.15.4后,会出现新错误

No module named 'numpy.core._multiarray_umath'

对于此错误,有人建议将numpy升级到1.16.0。

有人遇到同样的问题吗?

如果您使用jupyter笔记本电脑或Google Colaboratory,请使用!pip install numpy==1.15.0在导入numpy模块之前!pip install numpy==1.15.0并重新启动内核或运行时。 我遇到了同样的问题,并以这种方式解决了。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM