Python – ImportError: No module named dateutil.relativedelta

Recently while I am trying to use dateutil module in a python code I got following error:

ImportError: No module named dateutil.relativedelta

After debugging this issue I got to know that its because of no dateutil module available in my machine.

To install dateutil module use following code:

$ sudo apt-get install python-dateutil

After installing python-dateutil above issue got resolved.

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s