Deploying Keras models using TensorFlow
My actions before raising this issue
- [X] Followed the troubleshooting guide
- [X] Read/searched the docs
- [X] Searched past issues
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)
- faas-cli new --lang python-debian tf-faas
- cd tf-faas
- vim requirements.txt add tensorflow
- faas build -f tf-faas.yml
Context
Your Environment
-
FaaS-CLI version ( Full output from:
faas-cli version):0.11.3 -
Docker version
docker version(e.g. Docker 17.0.05 ):18.09.6 -
Are you using Docker Swarm or Kubernetes (FaaS-netes)? Kubernetes
-
Operating System and version (e.g. Linux, Windows, MacOS): Linux
-
Code example or link to GitHub repo or gist to reproduce problem:N/A
-
Other diagnostic information / logs from troubleshooting guide :N/A
Next steps
Keep trying to find out the cause of the bug. If I have a new discovery, I will describe it here
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.