OLS进口在大 pandas 中破碎; easy_install找到正确的软件包,但是由于某种原因而失败 [英] OLS import broken in Pandas; easy_install finds the right package but fails for some reason

查看:110
本文介绍了OLS进口在大 pandas 中破碎; easy_install找到正确的软件包,但是由于某种原因而失败的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这可能是来自 pandas ols导入损坏的后续问题?

我使用的是python 2.7,但存在完全相同的问题,但在解决问题上没有与Peter一样成功.

I am on Python 2.7 and have the exact same issue but do not have the same success as Peter in resolving.

主要问题是statsmodels的稳定版本是0.6.1. (根据 http://statsmodels.sourceforge.net/). Pandas使用statsmodels.api中的OLS函数,该函数仅在开发版本0.7.0中可用.我发现很难相信,经过2年(或更多,如果我的某些搜索结果值得相信!)之后,大熊猫仍被打破了吗?

The main problem is the stable version of statsmodels is 0.6.1. (per http://statsmodels.sourceforge.net/). Pandas uses the OLS function from statsmodels.api which is only available in the development version 0.7.0. I find it hard to believe that after 2 (or more, if some of my search results are to be believed!) years pandas is still broken?

@TomAugspurger建议使用!pip install statsmodels(即在ipython中执行此操作).这样我得到:

@TomAugspurger suggested !pip install statsmodels (im doing this within ipython). with that I get:

已满足要求(使用--upgrade进行升级):c:\ users \ swang \ appdata \ local \ enthought \ canopy \ user \ lib \ site-packages中的statsmodels

Requirement already satisfied (use --upgrade to upgrade): statsmodels in c:\users\swang\appdata\local\enthought\canopy\user\lib\site-packages

正在清理...

所以!pip install --upgrade statsmodels然后得到我

无法获取索引库URL https://pypi.python.org/simple/不是 在中找到满足要求statsmodels的所有下载 c:\ users \ swang \ appdata \ local \ enthought \ canopy \ user \ lib \ site-packages 下载/解压缩statsmodels模型正在清理...在以下位置无发行 全部在中找到statsmodels c:\ users \ swang \ appdata \ local \ enthought \ canopy \ user \ lib \ site-packages 将失败的调试日志存储在C:\ Users \ swang \ pip \ pip.log

Cannot fetch index base URL https://pypi.python.org/simple/ Could not find any downloads that satisfy the requirement statsmodels in c:\users\swang\appdata\local\enthought\canopy\user\lib\site-packages Downloading/unpacking statsmodels Cleaning up... No distributions at all found for statsmodels in c:\users\swang\appdata\local\enthought\canopy\user\lib\site-packages Storing debug log for failure in C:\Users\swang\pip\pip.log

尽管statsmodels在 https://pypi.python.org/simple/中清晰可见.

Despite statsmodels being clearly visible in https://pypi.python.org/simple/.

!easy_install -U statsmodels给出了最有希望的结果:

!easy_install -U statsmodels gives the most promising result:

搜索statsmodels阅读 http://pypi.python.org/simple/statsmodels/阅读 http://pypi.python.org/simple/statsmodels/无法检索索引 "statsmodels"页面的所有软件包的扫描索引(这可能需要一个 while)阅读 http://pypi.python.org/simple/ 最佳匹配:统计模型 0.7.0将statsmodels 0.7.0添加到easy-install.pth文件

Searching for statsmodels Reading http://pypi.python.org/simple/statsmodels/ Reading http://pypi.python.org/simple/statsmodels/ Couldn't retrieve index page for 'statsmodels' Scanning index of all packages (this may take a while) Reading http://pypi.python.org/simple/ Best match: statsmodels 0.7.0 Adding statsmodels 0.7.0 to easy-install.pth file

使用 c:\ users \ swang \ appdata \ local \ enthought \ canopy \ user \ lib \ site-packages statsmodels的处理依赖性完成处理 statsmodels的依赖项下载错误 http://pypi.python.org/simple/statsmodels/:[错误1] _ssl.c:507: 错误:140770FC:SSL例程:SSL23_GET_SERVER_HELLO:未知协议- 可能找不到某些软件包!下载错误于 http://pypi.python.org/simple/statsmodels/:[错误1] _ssl.c:507: 错误:140770FC:SSL例程:SSL23_GET_SERVER_HELLO:未知协议- 可能找不到某些软件包!下载错误于 http://pypi.python.org/simple/:[Errno 1] _ssl.c: 507: 错误:140770FC:SSL例程:SSL23_GET_SERVER_HELLO:未知协议- 可能找不到某些软件包!

Using c:\users\swang\appdata\local\enthought\canopy\user\lib\site-packages Processing dependencies for statsmodels Finished processing dependencies for statsmodels Download error on http://pypi.python.org/simple/statsmodels/: [Errno 1] _ssl.c:507: error:140770FC:SSL routines:SSL23_GET_SERVER_HELLO:unknown protocol -- Some packages may not be found! Download error on http://pypi.python.org/simple/statsmodels/: [Errno 1] _ssl.c:507: error:140770FC:SSL routines:SSL23_GET_SERVER_HELLO:unknown protocol -- Some packages may not be found! Download error on http://pypi.python.org/simple/: [Errno 1] _ssl.c:507: error:140770FC:SSL routines:SSL23_GET_SERVER_HELLO:unknown protocol -- Some packages may not be found!

是的! 0.7.0!给我!服务器为什么不打招呼?

Yes!!! 0.7.0! give me that! why is server not saying hello?

我也尝试了!easy_install -U scikits.statsmodels和许多其他变体,但均未成功.

I have also tried !easy_install -U scikits.statsmodels and many other variations, without success.

底线/TL; DR -我需要将statsmodels升级到0.7.0,并且pip install --upgradeeasy_install -U不允许我使用.我认为easy_install -U使我最接近目标,但未能达到目标,我无法弄清楚原因.我认为我在技术上不足以从 https://github.com/编译原始代码statsmodels/statsmodels/.您能为新手提供解决此简单问题的最佳方法吗?

Bottomline/TL;DR - I need to upgrade my statsmodels to 0.7.0 and pip install --upgrade and easy_install -U won't let me. I think easy_install -U gets me closest to the goal but fails there and I cannot figure out why. I don't think I'm technically able enough to compile the raw code from https://github.com/statsmodels/statsmodels/. Could you please advise the best way for a newbie to fix this one simple problem?

推荐答案

0.7.0没有可用的发行版.这就是为什么您无法从pip安装它的原因.

There is no release available with 0.7.0; which is why you cannot install it from pip.

您可以访问该模块的PyPi页面,以了解所有已发布的版本.

You can visit the PyPi page for the module to find out what are all the published releases.

要解决此问题,可以安装开发主干.幸运的是,该小组发布了 windows二进制文件,您可以找到一个与您的Python版本兼容的文件.

To solve the problem, you can install the development trunk. Thankfully the group releases windows binaries and you can find one compatible with your version of Python.

这篇关于OLS进口在大 pandas 中破碎; easy_install找到正确的软件包,但是由于某种原因而失败的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆