Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

3K
Visualizações
ERROR: Directory is not installable. Neither 'setup.py' nor 'pyproject.toml'

I've got the following error:

ERROR: Directory is not installable. Neither 'setup.py' nor 'pyproject.toml'

Background is that I'm following a guide online to expose an ML model via API Gateway on AWS that can be found here: Hosting your ML model on AWS Lambdas + API Gateway

I'm trying to pull some python packages into a local folder using the following command:

pip install -r requirements.txt --no-deps --target python/lib/python3.6/site-packages/

I have also tried this:

pip install -r requirements.txt --no-deps -t python/lib/python3.6/site-packages/

and all I get is the above error. Google is pretty bare when it comes to help with this issue, any ideas?

thanks,

over 4 years ago · Santiago Trujillo
2 Respostas
Responde à pergunta

0

Please try this:

   ADD requirements.txt ./
   pip install -r requirements.txt --no-deps -t python/lib/python3.6/site-packages/

syntax: ADD source destination

'ADD requirements.txt ./' adds requirements.txt (assumed to be at the cwd) to the docker image's './' folder.

Thus creating a layer from which the daemon has the context to the location of requirements.txt in the docker image.

More about it in dockerfile-best-practices

over 4 years ago · Santiago Trujillo Relatório

0

you can change your directory as follow

import os
os.chdir(path)

instead of:

cd path

also try to use:

!pip freeze > requirements.txt

instead of:

pip install -r requirements.txt

then execute your code:

!pip install .

or

!pip install -e .

in conclusion try this:

import os
os.chdir(path)
!pip freeze > requirements.txt
!pip install .
over 4 years ago · Santiago Trujillo Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda