Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
474 views
in Technique[技术] by (71.8m points)

python - ImportError: Missing required dependencies ['numpy']

I was able to run all scripts successfully which is using pandas , but suddenly all my PANDAS SCRIPTS are giving this error :

Traceback (most recent call last):

File "data_visulaization.py", line 5, in

import pandas as pd

File "/usr/lib64/python2.7/site-packages/pandas/init.py", line 18, in

raise ImportError("Missing required dependencies {0}".format(missing_dependencies))


ImportError: Missing required dependencies ['numpy']

Recently i have not installed or updated any new things.

Does anyone have a solution for this?

I uninstalled pandas and numpy and re-installed them but still facing the same issue.

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

I got this issue on Rasberry PI and found that the root cause was missing library:

import numpy
...
ImportError: libf77blas.so.3: cannot open shared object file: No such file or directory

Then it takes few minute to google the required library source:

sudo apt-get install libatlas-base-dev

I have not checked the solution on any other Linux-es but likely the same method should be applicable. So try to import the faulty library first and see what is missing.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...