AttributeError: module ‘numpy’ has no attribute ‘__version__’

Try this

In Jupyter notebook first uninstall the existing numpy by using !pip uninstall numpy.

Then install it !pip install numpy. Now restart the kernel (Python Notebook). It will work.

Leave a Comment