Amplify Build Failure Due to Missing pip3.9

0

I'm encountering an issue during the build phase of my AWS Amplify project:

Starting phase: build Executing command: sudo update-alternatives --install /usr/bin/python3 python3 /usr/local/bin/python3.9 11

2024-04-22T10:27:43.881Z [INFO]: # Executing command: /usr/local/bin/pip3.9 install --user pipenv

2024-04-22T10:27:43.882Z [WARNING]: /usr/local/bin/pip3.9: No such file or directory

2024-04-22T10:27:43.883Z [ERROR]: !!! Build failed

Hopefully this provides enough information. Please help!!!

已提问 1 个月前89 查看次数
1 回答
0

Hello.

I think the comments in the GitHub issue below will be helpful.
https://github.com/aws-amplify/amplify-hosting/issues/2983#issuecomment-1565701623

backend:
  phases:
    build:
      commands:
        - update-alternatives --install /usr/bin/python3 python3 /usr/local/bin/python3.9 15
        - /usr/local/bin/python3.9 -m pip install --upgrade pip
        - /usr/local/bin/pip3.9 install --user pipenv
        - amplifyPush --simple
profile picture
专家
已回答 1 个月前
profile pictureAWS
专家
已审核 1 个月前

您未登录。 登录 发布回答。

一个好的回答可以清楚地解答问题和提供建设性反馈,并能促进提问者的职业发展。

回答问题的准则