请勿找到已安装的python包

时间:2014-07-28 15:11:00

标签: python pip

我试图安装statsmodels,但我收到了statsmodels需要patsy的依赖错误。但是已经安装了patsy:

Baby-Whip$ sudo pip install patsy
Downloading/unpacking patsy
Downloading patsy-0.3.0-py2.py3-none-any.whl (224kB): 224kB downloaded
Requirement already satisfied (use --upgrade to upgrade): numpy in /System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python (from patsy)
Installing collected packages: patsy
Successfully installed patsy
Cleaning up...

然后当我尝试安装stasmodels时:

Baby-Whip$ sudo pip install statsmodels
Downloading/unpacking statsmodels
Downloading statsmodels-0.5.0.tar.gz (5.5MB): 5.5MB downloaded
Running setup.py (path:/private/tmp/pip_build_root/statsmodels/setup.py) egg_info for package statsmodels
Traceback (most recent call last):
  File "<string>", line 17, in <module>
  File "/private/tmp/pip_build_root/statsmodels/setup.py", line 463, in <module>
    check_dependency_versions(min_versions)
  File "/private/tmp/pip_build_root/statsmodels/setup.py", line 122, in check_dependency_versions
    raise ImportError("statsmodels requires patsy. http://patsy.readthedocs.org")
ImportError: statsmodels requires patsy. http://patsy.readthedocs.org
Complete output from command python setup.py egg_info:
Traceback (most recent call last):

File "<string>", line 17, in <module>

File "/private/tmp/pip_build_root/statsmodels/setup.py", line 463, in <module>

check_dependency_versions(min_versions)

File "/private/tmp/pip_build_root/statsmodels/setup.py", line 122, in check_dependency_versions

raise ImportError("statsmodels requires patsy. http://patsy.readthedocs.org")

ImportError: statsmodels requires patsy. http://patsy.readthedocs.org

运行pip冻结还会将patsy列为已安装的软件包。我在这里错过了什么?任何帮助将不胜感激。

1 个答案:

答案 0 :(得分:0)

请参阅上面的评论以获得答案。需要安装六个,并使用上述解决方法运行statsmodels安装。 Sidenote:kill me