I installed Pytz library on Suse 13.2 :
# python -m easy_install pytz-2015.2-py2.7.egg
Processing pytz-2015.2-py2.7.egg
Copying pytz-2015.2-py2.7.egg to /usr/lib/python2.7/site-packages
Adding pytz 2015.2 to easy-install.pth file
Installed /usr/lib/python2.7/site-packages/pytz-2015.2-py2.7.egg
Processing dependencies for pytz==2015.2
Finished processing dependencies for pytz==2015.2
I checked the python's modules list :
# python
Python 2.7.8 (default, Sep 30 2014, 15:34:38) [GCC] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> help('modules')
...
argparse heapq pytz wsgiref
...
I tried to import the pytz library...
>>> import pytz
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "pytz.py", line 2, in <module>
from pytz import timezone
ImportError: cannot import name timezone
Someone have an idea why it's impossible to import this library ?
easy_install pytz
orpip install pytz
? – artemdevel Apr 30 '15 at 18:04