openfaas / faas

OpenFaaS - Serverless Functions Made Simple
https://www.openfaas.com
MIT License
25.17k stars 1.94k forks source link

Deploying Keras models using TensorFlow #1486

Closed Guoyoyo closed 4 years ago

Guoyoyo commented 4 years ago

My actions before raising this issue

I am trying to deploy a model by using keras. The needed packages (Keras, python-opencv, etc.) installed successful except tensorflow. The error message is in the following:

ERROR: No matching distribution found for tensorflow (from -r requirements.txt (line 1))
The command '/bin/sh -c pip install -r requirements.txt --target=/home/app/python' returned a non-zero code: 1

[0] < Building demo done in 4.75s.
[0] Worker done.
Total build time: 4.75

Errors received during build:
- [demo] received non-zero exit code from build, error: The command '/bin/sh -c pip install -r requirements.txt --target=/home/app/python' returned a non-zero code: 1

Expected Behaviour

Install tensorflow library successful.

Steps to Reproduce (for bugs)

  1. faas-cli new --lang python-debian tf-faas
  2. cd tf-faas
  3. vim requirements.txt add tensorflow
  4. faas build -f tf-faas.yml

Context

Your Environment

Next steps

Keep trying to find out the cause of the bug. If I have a new discovery, I will describe it here

alexellis commented 4 years ago

Hi, sorry but we don't do technical support over GitHub issues. I believe we are already helping you on Slack. Feel free to create a github issue with all the code and send a link into the thread where we are already helping you.