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!!!

asked 12 days ago77 views
1 Answer
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
EXPERT
answered 12 days ago
profile pictureAWS
EXPERT
reviewed 11 days ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions