close

[Solved] AttributeError: module ‘numpy’ has no attribute ‘__version__’

Hello Guys, How are you all? Hope You all Are Fine. Today I get the following error Error: module ‘numpy’ has no attribute ‘version in python. So Here I am Explain to you all the possible solutions here.

Without wasting your time, Let’s start This Article to Solve This Error.

How Error: module ‘numpy’ has no attribute ‘version’ Error Occurs?

Today I get the following error Error: module ‘numpy’ has no attribute ‘version in python.

How To Solve Error: module ‘numpy’ has no attribute ‘version’ Error ?

  1. How To Solve Error: module 'numpy' has no attribute 'version' Error ?

    To Solve Error: module 'numpy' has no attribute 'version' Error You may have named your program/script 'numpy'. I also had that then i renamed my program and then it works. It happens because when you name your program similar to a module the import attribute clashes between programs and modules

  2. Error: module 'numpy' has no attribute 'version'

    To Solve Error: module 'numpy' has no attribute 'version' Error You may have named your program/script 'numpy'. I also had that then i renamed my program and then it works. It happens because when you name your program similar to a module the import attribute clashes between programs and modules

Solution 1


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.

Solution 2

You may have named your program/script ‘numpy’. I also had that then i renamed my program and then it works. It happens because when you name your program similar to a module the import attribute clashes between programs and modules

Summery

It’s all About this issue. Hope all solution helped you a lot. Comment below Your thoughts and your queries. Also, Comment below which solution worked for you? Thank You.

Also, Read