简体   繁体   中英

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

However, after downgrading numpy to 1.15.4, a new error comes

No module named 'numpy.core._multiarray_umath'

. For this error, someone suggests to upgrade numpy to 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. I had the same problem and solved it in this way.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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