Python 如何从 Anaconda 更新 Pandas,是否可以在这最后使用 eclipse?

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/22840449/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-08-19 01:47:39  来源:igfitidea点击:

How to update Pandas from Anaconda and is it possible to use eclipse with this last?

pythoneclipsepandas

提问by Space

I have installed Python via Anaconda using the doc at http://www.kevinsheppard.com/images/0/09/Python_introduction.pdfand my Pandas version is 0.13.1.

我已经使用http://www.kevinsheppard.com/images/0/09/Python_introduction.pdf 上的文档通过 Anaconda 安装了 Python ,我的 Pandas 版本是 0.13.1。

However, since I presently have some issue with this version (no possibility to really calculate the mean using resample with DataFrame) I would like to know how I can quickly upgrade my version to 0.14.

但是,由于我目前对此版本存在一些问题(无法使用 DataFrame 重新采样来真正计算平均值),我想知道如何将我的版本快速升级到 0.14。

I use to work with 'Python for Data Analysis from Wes McKinney' but I would like to know if it will not be worth to use eclipse for debugging (even if there are bugs with some eclipse version for the installation of PyDev) and how I can use it jointly with anaconda without any conflict.

我过去常常使用“来自 Wes McKinney 的 Python 进行数据分析”,但我想知道是否不值得使用 eclipse 进行调试(即使某些 eclipse 版本存在用于安装 PyDev 的错误)以及我如何可以和anaconda一起使用,没有任何冲突。

回答by dorvak

Simply type conda update pandasin your preferred shell (on Windows, use cmd; if Anaconda is not added to your PATH use the Anaconda prompt). You can of course use Eclipse together with Anaconda, but you need to specify the Python-Path (the one in the Anaconda-Directory). See this documentfor a detailed instruction.

只需输入conda update pandas您喜欢的 shell(在 Windows 上,使用 cmd;如果 Anaconda 未添加到您的 PATH 中,请使用 Anaconda 提示符)。您当然可以将 Eclipse 与 Anaconda 一起使用,但您需要指定 Python-Path(Anaconda-Directory 中的路径)。有关详细说明,请参阅此文档

回答by famargar

The answer above did not work for me (python 3.6, Anaconda, pandas 0.20.3). It worked with

上面的答案对我不起作用(python 3.6,Anaconda,pandas 0.20.3)。它与

conda install -c anaconda pandas 

Unfortunately I do not know how to help with Eclipse.

不幸的是,我不知道如何帮助 Eclipse。

回答by Ignacio

try

尝试

pip3 install --user --upgrade pandas