Solucionado (ver solução)
Solucionado
(ver solução)
1
resposta

Problemas com a requirements.txt no deploy

 ERROR: Could not find a version that satisfies the requirement annotated-types==0.6.0 (from -r requirements.txt (line 1)) (from versions: none)
Step #2: ERROR: No matching distribution found for annotated-types==0.6.0 (from -r requirements.txt (line 1))
Step #2: WARNING: You are using pip version 20.2.2; however, version 21.3.1 is available.
Step #2: You should consider upgrading via the '/env/bin/python -m pip install --upgrade pip' command.
Step #2: The command '/bin/sh -c pip install -r requirements.txt' returned a non-zero code: 1
Finished Step #2
ERROR
ERROR: build step 2 "gcr.io/cloud-builders/docker@sha256:08c5443ff4f8ba85c2114576bb9167c4de0bf658818aea536d3456e8d0e134cd" failed: step exited with non-zero status: 1
Step #2:
------------------------------------------------------------------------------------------------------------------------
Updating service [default] (this may take several minutes)...failed.
ERROR: (gcloud.app.deploy) Error Response: [9] Cloud build 917d9b9c-14e7-4c75-a703-cf784072e569 status: FAILURE
An unexpected error occurred. Refer to build logs: https://console.cloud.google.com/cloud-build/builds/917d9b9c-14e7-4c75-a703-cf784072e569?project=1083075868616
Full build logs: https://console.cloud.google.com/cloud-build/builds/917d9b9c-14e7-4c75-a703-cf784072e569?project=1083075868616

(venv) C:\machine-learning\mlops-deploy>pip install --upgrade pip
Requirement already satisfied: pip in c:\machine-learning\mlops-deploy\venv\lib\site-packages (24.0)

O que eu faço?

1 resposta
solução!

Oii, Gabrielle, tudo bem?

Testamos aqui no time e funciona normalmente. Vou te dar algumas sugestões, tá bem? São elas:

  • Antes de tudo, atualizar o pip: pip install --upgrade pip.

  • Verificar se o requirements.txt está igual ao do curso.

  • Verificar se você colocou a flag -r no comando: pip install -r requirements.txt.

  • Tentar o deploy outra vez. Às vezes é só um bug aleatório mesmo.

Se a dúvida persistir, pode me retornar aqui.

Abraços!

Caso este post tenha lhe ajudado, por favor, marcar como solucionado ✓.

Quer mergulhar em tecnologia e aprendizagem?

Receba a newsletter que o nosso CEO escreve pessoalmente, com insights do mercado de trabalho, ciência e desenvolvimento de software