【问题标题】:AWS says there's "No module named pipenv"AWS 说“没有名为 pipenv 的模块”
【发布时间】:2021-06-08 18:27:14
【问题描述】:

我正在尝试部署到 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 并且它在本地工作

【问题讨论】:

    标签: python amazon-web-services pip amazon-elastic-beanstalk


    【解决方案1】:

    我发现是因为我的 Pipenv 使用的是 Python 3.7,而我的环境是 3.8,所以我将环境设置为 3.7,一切都很好!

    【讨论】:

      猜你喜欢
      • 2019-04-08
      • 1970-01-01
      • 2018-10-12
      • 2017-06-17
      • 1970-01-01
      • 2018-09-27
      • 1970-01-01
      • 2013-07-08
      • 2015-03-27
      相关资源
      最近更新 更多