Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

dateutil 2.5.0 is the minimum required version

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:

  • 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

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.

like image 348
user1745564 Avatar asked Jul 23 '18 00:07

user1745564


2 Answers

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

pip install python-dateutil==2.5.0

This was resolved the issue.

like image 192
GPrathap Avatar answered Nov 11 '22 20:11

GPrathap


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

pip install pandas==0.22.0

like image 44
vikas kamboj Avatar answered Nov 11 '22 20:11

vikas kamboj