![](/img/trans.png)
[英]“ImportError: No module named sendgrid” for SendGrid in Google App Engine
[英]“ImportError: No module named smtpapi” for SendGrid in Google App Engine
我正在嘗試按照此處的說明使用python使用Google App Engine設置SendGrid: https : //developers.google.com/appengine/docs/python/mail/sendgrid
我可以成功使用示例應用程序發送郵件: https : //github.com/sendgrid/google-python-sample-app
但這是基於舊的sendgrid python代碼的,我想使用最新版本: https : //github.com/sendgrid/sendgrid-python/tree/master/sendgrid
我嘗試按照此處的指導進行操作: sendgrid谷歌應用程序引擎python DistributionNotFound
...手動安裝sendgrid和smtpapi,然后將文件夾復制到我的gae目錄,然后將smtpapi移到sendgrid目錄...
但是得到了錯誤:
"ImportError: cannot import name Sendgrid"
我認為錯誤消息中可能有線索,我認為您引用的是Sendgrid (大寫S )而不是sendgrid (小寫)?
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.