pandas dateutil 2.5.0 是所需的最低版本

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/51470373/
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-09-14 05:49:36  来源:igfitidea点击:

dateutil 2.5.0 is the minimum required version

pythonpandasjupyter-notebookcanopypython-dateutil

提问by user1745564

I'm running the jupyter notebook (Enthought Canopy python distribution 2.7) on Mac OSX (v 10.13.6). When I try to import pandas (import pandas as pd), I am getting the complaint: ImportError: dateutil 2.5.0 is the minimum required version. I have these package versions:

我正在 Mac OSX (v 10.13.6) 上运行 jupyter notebook(Enthought Canopy python 发行版 2.7)。当我尝试导入Pandas(将Pandas导入为 pd)时,我收到了投诉:ImportError: dateutil 2.5.0 is the minimum required version。我有这些软件包版本:

  • Canopy version 2.1.3.3542 (64 bit)
  • jupyter version 1.0.0-25
  • pandas version 0.23.1-1
  • python_dateutil version 2.6.0-1
  • Canopy 版本 2.1.3.3542(64 位)
  • jupyter 版本 1.0.0-25
  • 大Pandas版本 0.23.1-1
  • python_dateutil 版本 2.6.0-1

I'm not getting this complaint when I run with the Canopy Editor so it must be some jupyter compatibility problem. Does anyone have a solution on how to fix this? All was well a few months ago until I recently (and mindlessly) allowed an update of my packages.

当我使用 Canopy Editor 运行时,我没有收到这个抱怨,所以它一定是一些 jupyter 兼容性问题。有没有人有关于如何解决这个问题的解决方案?几个月前一切都很好,直到我最近(并且无意识地)允许更新我的软件包。

回答by GPrathap

For me to solve this issue I had to install python-dateutillibrary.

为了解决这个问题,我必须安装python-dateutil库。

pip install python-dateutil==2.5.0

This was resolved the issue.

这解决了问题。

回答by vikas kamboj

I had this same issue using the newest pandas version - downgrading to pandas 0.22.0 fixes the problem.

我在使用最新的Pandas版本时遇到了同样的问题——降级到Pandas 0.22.0 解决了这个问题。

pip install pandas==0.22.0

pip install pandas==0.22.0

回答by user1745564

Installed Canopy version 2.1.9. The downloaded version worked without updating any of the packages called out by the Canopy Package Manager. Updated all the packages, but then the "import pandas as pd" failed when using the jupyter notebook. Downgraded the notebook package from 4.4.1-5 to 4.4.1-4 which cascaded to 35 additional package downgrades. Retested the import of pandas and the issue seems to have disappeared.

安装了 Canopy 版本 2.1.9。下载的版本无需更新 Canopy 包管理器调用的任何包即可运行。更新了所有包,但是在使用 jupyter notebook 时“import pandas as pd”失败了。将笔记本包从 4.4.1-5 降级到 4.4.1-4,这会级联到 35 个额外的包降级。重新测试了Pandas的导入,问题似乎已经消失了。

回答by Vinamra Mattoo

Following command worked for me

以下命令对我有用

sudo -H pip install --ignore-installed -U ipython

sudo -H pip install --ignore-installed -U pyzmq