Pandas- ImportError: Missing required dependencies [‘numpy’]

Table of Contents
This is a common error that sometimes occur when importing pandas library. Here I am sharing the solution for that. So please follow as I described below and if you found any difficulty, intimate me by your comment.

Problem:-

>>> import pandas
Traceback (most recent call last):
  File “<stdin>”, line 1, in <module>
  File “/home/anil/anaconda3/lib/python3.6/site-packages/pandas/__init__.py”, line 19, in <module>
    “Missing required dependencies {0}”.format(missing_dependencies))
ImportError: Missing required dependencies [‘numpy’]

Solution:-

check all folder list in your python lib folder

-> ls -la

Now if you see numpy folder in that. then run below command :-

sudo pip3 uninstall numpy

Now check again folder list with –

-> ls -la

Try by importing pandas –

user@user-Lenovo-ideapad-300-15ISK:~/.local/lib/python3.6/site-packages$ python3
Python 3.6.4 |Anaconda, Inc.| (default, Jan 16 2019, 18:10:19)
>>>
>>> import pandas
>>>
>>>
>>>

you will not found this error now.

Related posts