I am trying to run a program using paster serve
, but I keep getting the error:
ImportError: No module named dateutil.relativedelta
I also ran into this issue. The simple solution I ended up using was to add --upgrade
to the end of the command. This forced it to install it even though Python thought it was installed. This resolved the issue.
So if you have this issue, try the following:
sudo pip install python-dateutil --upgrade
It can't possibly hurt anything, so there is no harm in just forcing it to be reinstalled.