Timezone Information Missing in pytz?

后端 未结 8 1624
轻奢々
轻奢々 2020-12-31 16:17

I\'m having a very weird problem with Python\'s pytz: it seems to have an incomplete catalog of timezones on my system (MacOS X 10.8.5, system Python 2.7.5).

8条回答
  •  心在旅途
    2020-12-31 16:56

    I had a similar problem (Mac and python 3.6). it found many timezones but none under America. For some reason (may due to pycharm settings), there was a case conflict in directory names under directory /lib/python3.6/site-packages/pytz/zoneinfo For example, there was an empty america directory and a directory called america (Case Conflict) (and other similar). Renaming this directory to America solved the problem.

提交回复
热议问题