import datetime



Hi Guys,

I have just installed Python2.4.2 on our HP-UX system. But when I try
to import datetime modlue I get the following error

~~~~~~~~~~~~~~~~~~~~~~~~~~~
>>> from datetime import datetime
Traceback (most recent call last):
File "<stdin>", line 1, in ?
ImportError: No module named datetime
~~~~~~~~~~~~~~~~~~~~~~~~~~

Am I missing any path? because I tried to import 'textwrap module and
that import worked fine.

Any help will be appreciated.

.



Relevant Pages

  • Re: incrementing a time tuple by one day
    ... >> time tuple by one day what is the standard method to do that? ... >> It appears to have decremented by a day and a month instead of increment. ... > What you're doing wrong is: not using the datetime module... ... ImportError: No module named datetime ...
    (comp.lang.python)
  • Re: import datetime
    ... > I have just installed Python2.4.2 on our HP-UX system. ... > to import datetime modlue I get the following error ... You may have more than one version of Python. ...
    (comp.lang.python)
  • Re: problem with import in python 2.2.3
    ... ImportError: No module named datetime ... Does anyone know why the datetime module is not being found in python ...
    (comp.lang.python)
  • Re: datetime
    ... >>Okay, I searched www.python.org for a date handler and found datetime. ... >>whenever I try to import datetime, I get a No module named datetime ...
    (comp.lang.python)
  • datetime
    ... Okay, I searched www.python.org for a date handler and found datetime. ... whenever I try to import datetime, I get a No module named datetime ...
    (comp.lang.python)