What is the replacement for dateutil.parser in python3?

You should first find the exact name for the module using pip search:

pip search dateutil

Then, install the version you want (assuming py-dateutil):

pip install py-dateutil

Now, fire-up shell and import the module (pitfall: the module is not called py-dateutil):

import dateutil.parser

You should be good to go!


dateutil is a third party module. It has recently been ported to Python 3 with dateutil 2.0, and the parser functions was ported as well.

So the replacement is dateutil.parser. You just forgot to install it.