Issue
i am new to python and i have been using the following code
import dateutil.parser as parser
text = 'Thu, 16 Dec 2010 12:14:05 +0000'
date = parser.parse(text)
print(date.isoformat())
suggested by the example on the site .
but i am getting the 'ModuleNotFoundError: No module named 'dateutil.parser'; 'dateutil' is not a package'
i have already used the few solution from the similar question but non solved my problem
even after installing dateutil and also upgraded it with pip install python-dateutil --upgrade .
But still the problem continues .
Could any one help me out of this slump.
and also could some one help me understand dateutil and parser .
Solution
I tried your code and it works, try to pip uninstall python-dateutil
and reinstall it again.
Answered By - bugsb
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.