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.
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']
-> 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.
Problem:-
>>> import pandasTraceback (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.
Note: Only a member of this blog may post a comment.