python import 'celery.worker.strategy:default'...

在启动celery时报下面错误:

ValueError: Couldn't import 'celery.worker.strategy:default': 'latin-1' codec can't encode characters in position 0-4: ordinal not in range(256)。 

解决办法:安装python下的 pytz包

下载地址:http://pypi.python.org/pypi/pytz/#downloads

http://www.zuoann.com/

你可能感兴趣的:(python,celery)