簡體   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