执行命令:source venv / bin / activate时,代码构建失败,并显示错误。原因:退出状态127

时间:2020-09-05 09:09:06

标签: python aws-codepipeline aws-codebuild aws-codecommit zappa

我用Zappa代码创建了一个代码管道,并将其连接到bitbucket。我尝试构建它,但是在代码构建步骤中指出错误失败。

COMMAND_EXECUTION_ERROR Message: Error while executing command: source venv/bin/activate. Reason: exit status 127

这是我的buildspec.yml文件

version: 0.2
phases:
  install:
    commands:
      - echo Setting up virtualenv
      - python -m venv venv
      - source venv/bin/activate
      - echo Installing requirements from file
      - pip install -r requirements.txt
  build:
    commands:
      - echo Build started on `date`
      - echo Building and running tests
      - python tests.py
  post_build:
    commands:
      - aws s3 cp backend-env s3://${S3_BUCKET} --recursive
      - echo Build completed on `date`
      - echo Starting deployment
      - zappa update dev
      - echo Deployment completed

0 个答案:

没有答案