【发布时间】:2015-05-06 07:49:42
【问题描述】:
我正在尝试将 Twilio 与谷歌应用引擎集成。我按照此处的说明进行操作:http://twilio-python.readthedocs.org/en/latest/appengine.html。
当我尝试在本地运行应用程序或部署应用程序时出现错误:
ImportError: No module named pytz
错误来自路径:
from twilio.rest import TwilioRestClient
from .rest.exceptions import TwilioRestException
from .resources
from .util
import pytz
ImportError: No module named pytz
我已经进行了大量研究来解决我的问题,但似乎无法找到解决方案。我已经使用 easy_install 重新安装了 pytz .egg 文件,但这似乎没有任何作用;即使我从 easy_install.pth 文件中删除它然后重新安装它。奇怪的是,如果我从命令行访问 python,并尝试导入 pytz,我没有收到错误:
$ python
>>> import pytz
没有错误
我们将不胜感激任何和所有解决方案或提示!提前致谢! 布兰登
【问题讨论】:
标签: python google-app-engine twilio pytz