2015-04-05 42 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

相關問題