python导入pandas出错_Python statsmodels安装在pandas上出现导入错误

问题是我对熊猫产生了强烈的恐惧:File "/usr/lib/python2.7/dist-packages/setuptools/command/easy_install.py", line 1094, in run_setup

run_setup(setup_script, args)

File "/usr/lib/python2.7/dist-packages/setuptools/sandbox.py", line 30, in run_setup

lambda: execfile(

File "/usr/lib/python2.7/dist-packages/setuptools/sandbox.py", line 72, in run

return func()

File "/usr/lib/python2.7/dist-packages/setuptools/sandbox.py", line 32, in

{'__file__':setup_script, '__name__':'__main__'}

File "setup.py", line 201, in

File "setup.py", line 53, in check_dependency_versions

ImportError: statsmodels requires pandas

不过,我已经安装了Pandas(尽管是从源代码构建而不是通过easy-tu安装):

^{pr2}$

我怀疑easy_install查找的目录不正确,但我不确定如何更改设置。我说的对吗?如果没有,会有什么问题?在

提前非常感谢您的帮助!在

编辑-这里是easy_install、pip和python的位置:x@ubuntu:~$ which easy_install

/usr/bin/easy_install

x@ubuntu:~$ which pip

/usr/bin/pip

x@ubuntu:~$ which python

/usr/bin/python

你可能感兴趣的:(python导入pandas出错_Python statsmodels安装在pandas上出现导入错误)