我试图安装statsmodels( http://statsmodels.sourceforge.net使用的easy_install)(如下建议: http://statsmodels.sourceforge.net/install.html )。 我使用Ubuntu 12.04 LTS。
问题是,我得到的大熊猫一个ImportError:
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 <lambda>
{'__file__':setup_script, '__name__':'__main__'}
File "setup.py", line 201, in <module>
File "setup.py", line 53, in check_dependency_versions
ImportError: statsmodels requires pandas
不过,我已经安装熊猫(尽管是从源代码构建,而不是通过使用easy_install):
>>> import pandas
>>> pandas.__version__
'0.10.1'
>>> pandas.__path__
['/usr/local/lib/python2.7/dist-packages/pandas-0.10.1-py2.7-linux-i686.egg/pandas']
我怀疑是的easy_install在寻找错误的目录,但我不知道如何去改变设置。 我对么? 如果不是,可能是什么问题呢?
非常感谢您的帮助提前!
编辑 - 这里有分别的easy_install,PIP和蟒蛇的位置:
x@ubuntu:~$ which easy_install
/usr/bin/easy_install
x@ubuntu:~$ which pip
/usr/bin/pip
x@ubuntu:~$ which python
/usr/bin/python