I have NumPy in my system. But I am not able to import the version function from the NumPy module. I got this bellow error.
from numpy import version
AttributeError: module 'numpy' has no attribute '__version__'
How can I solve this error?
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
I am using the latest version of Setuptools 47.3.1 and the latest version of Numpy 1.19.0. It is totally working fine in my system. If you are using Anaconda, then you can create a new environment and install the software.
>>> import scipy
Traceback (most recent call ...READ MORE
Hey @Nagya, replace
Hey @Hannh, I had a similar issue. ...READ MORE
You have used unit8 in your code. ...READ MORE
You can use the rename function in ...READ MORE
The major difference is "size" includes NaN values, ...READ MORE
key error. I love python READ MORE
You'll have to install the pyaudio module ...READ MORE
I think numpy version is not compatible ...READ MORE
Already have an account? Sign in.