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

gefragt vor einem Monat93 Aufrufe
1 Antwort
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
EXPERTE
beantwortet vor einem Monat
profile pictureAWS
EXPERTE
überprüft vor einem Monat

Du bist nicht angemeldet. Anmelden um eine Antwort zu veröffentlichen.

Eine gute Antwort beantwortet die Frage klar, gibt konstruktives Feedback und fördert die berufliche Weiterentwicklung des Fragenstellers.

Richtlinien für die Beantwortung von Fragen