2015-04-05 50 views
0

这可能是从pandas ols import broken?OLS进口破坏熊猫; easy_install的找到合适的方案,但由于某种原因失败

一个后续问题我在Python 2.7版,并有相同的问题,但没有解决同样的成功,彼得。

主要问题是statsmodels的稳定版本是0.6.1。 (根据http://statsmodels.sourceforge.net/)。 Pandas使用statsmodels.api中的OLS函数,该函数仅在开发版本0.7.0中提供。我很难相信,在2(或更多,如果我的一些搜索结果是相信的!)后,年熊猫仍然是坏的?

@TomAugspurger建议!pip install statsmodels(即时通讯在ipython中执行此操作)。与我得到:

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

Cleaning up...

所以​​然后让我

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/清晰可见。

!easy_install -U statsmodels给出了最有前途的结果:

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

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!给我!为什么服务器不打招呼?

我也试过!easy_install -U scikits.statsmodels和许多其他变化,没有成功。

Bottomline/TL; DR - 我需要升级我的statsmodels为0.7.0和pip install --upgradeeasy_install -U不会让我。我认为easy_install -U让我离目标最近,但是在那里失败了,我找不到原因。我认为我在技术上不足以编译来自https://github.com/statsmodels/statsmodels/的原始代码。你能否建议一个新手解决这个简单问题的最佳方式?

+0

回复:http://stackoverflow.com/questions/28577947/pip-install-pandas-couldnt-find-any-downloads-that-satisfy-the-requirement-pand是的,ping服务器的作品,所以它不是。 – swyx 2015-04-05 04:54:53

+0

点子列表说,我目前有点(1.5.6),熊猫(0.14.0)和statsmodels(0.6.1),如果有帮助... – swyx 2015-04-05 05:02:24

+0

为什么你尝试使用'easy_install',如果你已经有'pip'可用? 'pip'功能更强大,发生错误通常更容易调试。我会尝试'PIP安装-U scikits.statsmodels',看看是否有效。 – cel 2015-04-05 06:39:36

回答

0

0.7.0没有发布;这就是为什么你不能从pip安装它。

您可以访问PyPi page for the module找出已发布版本的全部内容。

要解决该问题,可以安装开发主干。谢天谢地,该组织发布windows binaries,你可以找到一个与你的Python版本兼容的产品。

+0

哦,上帝的二进制文件。拯救生命!谢谢。发现它在0.6.1但不是0.7.0。我想这意味着我不会知道如何正确操纵点...但我很高兴在被困在这里4个小时后继续前进。再次感谢。 – swyx 2015-04-05 06:52:31

相关问题