I am using python 2.7.6
and trying to import pandas but Jupyter notebook gives me following
error--
ImportError Traceback (most recent call last) in () ----> 1 import pandas
/usr/local/lib/python2.7/dist-packages/pandas/init.py in () 21 22 # numpy compat ---> 23 from pandas.compat.numpy import * 24 25 try:
/usr/local/lib/python2.7/dist-packages/pandas/compat/numpy/init.py in () 22 'your numpy version is {0}.\n' 23 'Please upgrade numpy to >= 1.9.0 to use ' ---> 24 'this pandas version'.format(_np_version)) 25 26
ImportError: this version of pandas is incompatible with numpy < 1.9.0 your numpy version is 1.8.2. Please upgrade numpy to >= 1.9.0 to use this pandas version
while I have numpy 1.14.1
$ pip freeze
numpy==1.14.1
pandas==0.22.0
pip-magic==0.2.3
python-dateutil==2.6.1
pytz==2018.3
six==1.11.0
I have tried uninstalling and then reinstalling numpy
and pandas
from ubuntu terminal as well as Jupyter's terminal but unable to solve the error, any help would be appreciated. Thanks.