AttributeError: module 'numpy' has no attribute '__version__'

0 votes

Hi Guys, 

I have numpy in my system. But I am not able to import version function from numpy module. I got this bellow error.

from import numpy version
AttributeError: module 'numpy' has no attribute '__version__'

How can I solve this error?

Apr 20 in Python by akhtar
• 11,270 points
748 views

1 answer to this question.

0 votes

Hi@akhtar,

To avoid this error you can use the commands one by one.

  • Uninstall previous version of numpy and setuptools

$ pip uninstall -y numpy
$ pip uninstall -y setuptools
  • Reinstall latest version of numpy and setuptools

$ pip install setuptools
$ pip install numpy
answered Apr 20 by MD
• 24,500 points

Related Questions In Python

0 votes
1 answer

Getting AttributeError: 'module' object (scipy) has no attribute 'misc' in Python. How to solve this?

>>> import scipy >>> scipy.misc Traceback (most recent call ...READ MORE

answered Dec 24, 2018 in Python by Nymeria
• 3,540 points
3,071 views
0 votes
1 answer

Python error "AttributeError: '_Screen' object has no attribute 'mainloop'" python module turtle

Hey @Nagya, replace  wn.mainlopp() with turtle.mainloop() ...READ MORE

answered Jun 19, 2019 in Python by Faiza
988 views
0 votes
1 answer

How to rename columns in pandas (Python)?

It is easy by just adding ".columns" ...READ MORE

answered Apr 30, 2018 in Data Analytics by DeepCoder786
• 1,720 points
315 views
0 votes
1 answer

What is the Difference in Size and Count in pandas (python)?

The major difference is size includes NaN ...READ MORE

answered Apr 30, 2018 in Data Analytics by DeepCoder786
• 1,720 points
979 views
0 votes
2 answers

Replacing a row in pandas data.frame

key error. I love python READ MORE

answered Feb 18, 2019 in Data Analytics by anonymous
5,126 views
0 votes
1 answer

Converting a pandas data-frame to a dictionary

Emp_dict=Employee.to_dict('records') You can directly use the 'to_dict()' function ...READ MORE

answered May 23, 2018 in Data Analytics by Bharani
• 4,560 points
2,816 views
0 votes
1 answer

AttributeError: type object 'numpy.ndarray' has no attribute '__array_function__'

Hi@akhtar, I think numpy version is not compatible ...READ MORE

answered Apr 13 in Python by MD
• 24,500 points
199 views
0 votes
1 answer

AttributeError: 'module' object has no attribute 'HTTPSConnection'

Hi@akhtar, You have to install openssl and openssl-devel before ...READ MORE

answered Apr 20 in Python by MD
• 24,500 points
122 views