首页 > 解决方案 > Heroku 和 Aiohttp - 这会导致问题吗?

问题描述

在部署到 Heroku 时,我发现了这个错误:

ERROR: aiohttp 3.7.3 has requirement chardet<4.0,>=2.0, but you'll have chardet 4.0.0 which is incompatible.

然而下面却说

Successfully installed aiohttp-3.7.3

但是,该程序似乎没有按预期工作 - 它适用于我的本地版本,但当我将其部署到 heroku 时却没有,这让我怀疑 ERROR 导致了问题。在这种情况下,如何将 chardet 更改为兼容?

标签: pythonheroku

解决方案


推荐阅读