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

I am working on how to use pandas in ipython notebook:

import pandas as pd

      

But I am getting the following error:

AttributeError                            Traceback (most recent call last)
<ipython-input-17-c7ecb2b0a99d> in <module>()
----> 1 from pandas  import *

D:\Anaconda\lib\site-packages\pandas\__init__.py in <module>()
 20 
 21 # numpy compat
---> 22 from pandas.compat.numpy import *
 23 
 24 try:

D:\Anaconda\lib\site-packages\pandas\compat\numpy\__init__.py in <module>()
  8 
  9 # numpy versioning
---> 10 _np_version = np.version.short_version
 11 _nlv = LooseVersion(_np_version)
 12 _np_version_under1p8 = _nlv < '1.8'

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

      

I have no idea how to fix this, what is the problem? My python version is 3.6

+3
python numpy pandas ipython-notebook


source to share


No one has answered this question yet

Check out similar questions:

1531
Calling a function of a module using its name (string)
fourteen
Pandas import gives AttributeError: module 'pandas' has no attribute 'core' in iPython Notebook
7
AttributeError: module 'numpy' has no attribute '__version__'
2
Ironpython call problem
2
AttributeError: module 'numpy' has no attribute 'core'
1
Unable to get Yahoo options data using Remote Data Access of Pandas
0
Get the correct Pandas version in IPython notebook
0
Jupyter notebook picks older numpy version
-1
AttributeError: module 'pandas' has no attribute 'computation'
-2
PYTHON: ImportError: cannot import name 'ewma'



All Articles
Loading...
X
Show
Funny
Dev
Pics