I upgraded numpy to the latest version and now I am getting following error on importing numpy:
AttributeError: type object 'numpy.ndarray' has no attribute 'array_function'
I am using numpy version 1.16.
Uninstall all installs of Numpy using
pip uninstall numpy
pip3 uninstall numpy
You may need to run it twice as two versions of numpy may be installed Then run
pip install numpy