1

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?

Spencer
  • 2,276
  • 3
  • 10
  • 15
  • The first error is due to an intentional behavior change in numpy, which previously allowed unsafe behavior. `pd.read_hdf` will need to be updated to handle this. The second is due to a broken installation that consists of multiple conflicting numpy versions. – Eric Jan 23 '19 at 08:37

1 Answers1

0

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.

Bury
  • 41
  • 5