AWS称“没有名为pipenv的模块”

2024-06-16 11:35:11 发布

您现在位置:Python中文网/ 问答频道 /正文

我正在尝试部署到Elastic Beanstalk,并使用requirements.txt安装任何依赖项。requirements.txtlocal-requirements.txt是相同的,这个web应用程序在本地工作

当我尝试将它部署到Elastic Beanstalk(使用eb deploy)时,它失败了,运行状况非常严重。给出的错误是

Error: fail to install dependencies with Pipfile file with error 
Command /bin/sh -c python3 -m pipenv install --skip-lock failed with error exit status 1.
Stderr:/bin/python3: No module named pipenv

我不知道如何让pipenv与Elastic Beanstalk一起工作,因为我有--skip-lock,它在本地工作


Tags: installtxtweblockbinlocal部署pipenv