【发布时间】:2019-03-25 12:07:31
【问题描述】:
我正在尝试将程序部署到 Heroku,但是在安装多个依赖项时出现错误:
'No matching distribution found for random'
也适用于 time 和 pickle 依赖项。在互联网上我发现这是由于它们尚未更新,但没有找到解决方法。
文件内容requirements.txt:
telebot
config
random
datetime
pickle
time
文件Procfile.windows的内容:
bot: python3 bot.py
【问题讨论】:
-
@Chris 一些依赖安装正常,但是我指定的三个依赖没有安装。
-
您是否能够使用下面显示的答案来解决这个问题?如果是这样,请记得accept it。这会向其他用户显示您已找到解决方案。
标签: python heroku random time pickle