在 Vercel 上托管 Quart 应用程序。部署时找不到 Quart

时间:2021-05-06 16:20:14

标签: python flask quart

所以我试图在 Vercel 上为我的 Discord Bot 部署我的仪表板,当我这样做时,部署失败。它说找不到包 Quart。我已经在 requirements.txt 文件中包含了这个和它的版本。这是文本文件:

aiofiles==0.6.0
aiohttp==3.7.3
aiosqlite==0.17.0
astroid==2.4.2
Async-OAuthlib==0.0.9
async-timeout==3.0.1
asyncio==3.4.3
asyncpraw==7.2.0
asyncprawcore==2.0.1
atomicwrites==1.4.0
attrs==20.3.0
beautifulsoup4==4.9.3
blinker==1.4
cachetools==4.2.1
certifi==2020.12.5
chardet==3.0.4
click==7.1.2
colorama==0.4.4
dblpy==0.4.0
discord-ext-ipc==2.0.0
discord.py==1.6.0
Flask==1.1.2
Flask-SQLAlchemy==2.5.1
future==0.18.2
giphy-client==1.0.0
gunicorn==20.1.0
greenlet==1.0.0
h11==0.12.0
h2==4.0.0
hpack==4.0.0
Hypercorn==0.11.2
hyperframe==6.0.0
idna==2.10
iniconfig==1.1.1
isort==5.6.4
itsdangerous==1.1.0
Jinja2==2.11.3
joblib==1.0.1
lazy-object-proxy==1.4.3
livereload==2.6.3
lunr==0.5.8
Markdown==3.3.4
MarkupSafe==1.1.1
mccabe==0.6.1
mkdocs==1.1.2
multidict==4.7.6
nltk==3.5
oauthlib==3.1.0
packaging==20.7
pluggy==0.13.1
praw==7.2.0
prawcore==2.0.0
priority==1.3.0
py==1.9.0
pygame==2.0.1
PyJWT==2.0.1
pylint==2.6.0
pyparsing==2.4.7
pytest==6.1.2
python-dateutil==2.8.1
python-utils==2.5.6
PyYAML==5.4.1
Quart==0.14.1
Quart-Discord==2.1.4
ratelimiter==1.2.0.post0
regex==2020.11.13
requests==2.25.1
six==1.15.0
soupsieve==2.1
SQLAlchemy==1.4.11
termcolor==1.1.0
toml==0.10.2
tornado==6.1
tqdm==4.59.0
typing-extensions==3.7.4.3
update-checker==0.18.0
urllib3==1.26.2
websocket-client==0.57.0
Werkzeug==1.0.1
wrapt==1.12.1
wsproto==1.0.0
yarl==1.5.1

除了 Quart 和 Quart-Discord 之外,所有其他软件包都已安装。请帮忙解决这个问题。

1 个答案:

答案 0 :(得分:0)

Vercel 仅支持 Python 3.6 (docs),而 Quart 0.14.1 至少需要 Python 3.7。如果您想切换到 Python 3.6,Quart 0.6.* 是支持 Python 3.6 的最终版本,但与 0.14 相比缺少一些功能。* 请参阅changelog for details