Today is my first day at Python and have been going through problems. One that I was working on was, “Write a short program which extracts the current date and time from the operating system and prints it on screen in the following format: day, month, year, current time in GMT.
Demonstrate that it works.”
I was going to use pytz, so used easy_install pytz
This installed it in my site-packages (pytz-2012d-py2.7.egg)
Is this the correct directory for me to be able to import the module?
In my python shell i use from pytz import timezone I get,
"ImportError: No module named pytz"
Any ideas? Thanks in advance
timemodule can also help here..UTC is Coordinated Universal Time (formerly known as Greenwich Mean Time, or GMT)
Also can you Check the logs while you installed pytz with the below ones…