Heroku似乎不支持Gspread
我正在尝试使用Python创建聊天机器人,然后选择Heroku作为聊天机器人Sever。 一切顺利,但是只要我添加以下代码,我的聊天机器人就无法正常工作。
导入gspread
我想知道为什么会发生。
I was trying creating my line chatbot using python and I chose heroku as my chatbot sever.
Everything goes well but as long as I add the following code, my chatbot can't work.
import gspread
I was wondering why it happened.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我认为这是因为您在服务器上缺少
gspread
。在服务器上运行以下命令,它应该解决您的问题:
它将安装GSPREAD软件包。
I think this is because you are missing the package
gspread
on your server.Run the following command on the server and it should solve your issue:
It will install the gspread package.