Heroku似乎不支持Gspread

发布于 2025-02-11 22:58:01 字数 148 浏览 0 评论 0原文

我正在尝试使用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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

云淡风轻 2025-02-18 22:58:01

我认为这是因为您在服务器上缺少gspread

在服务器上运行以下命令,它应该解决您的问题:

python3 -m pip install 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:

python3 -m pip install gspread

It will install the gspread package.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文