numpy AttributeError: with theano module 'numpy.core.multiarray' has no attribute _get_ndarray_c_version numpy AttributeError: with theano module 'numpy.core.multiarray' has no attribute _get_ndarray_c_version numpy numpy

numpy AttributeError: with theano module 'numpy.core.multiarray' has no attribute _get_ndarray_c_version


This is a known bug presumably caused by changes introduced in NumPy. A fix for this was introduced in Theano v1.0.4. So, either you need to upgrade to at least that version of Theano, or downgrade NumPy to below v1.16.

Note that at the moment (25 July 2019) only Conda Forge has Theano v1.0.4, whereas Anaconda has v1.0.3. So you need to run

conda install -c conda-forge theano=1.0.4

Otherwise, the NumPy downgrade is

conda install numpy=1.15


Go to the

Anaconda3\pkgs\theano-1.0.3-py37_0\Lib\site-packages\theano\gof

open cc.py

go to line 1376

comment these code:

sig.append('NPY_ABI_VERSION=0x%X' %        np.core.multiarray._get_ndarray_c_version())

like this

For more details you can Refer:

https://github.com/MichalDanielDobrzanski/DeepLearningPython35/issues/20

https://www.wandouip.com/t5i268914/