Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error while installing requirements.txt #92

Open
harishkhollam999 opened this issue Feb 2, 2021 · 3 comments
Open

Error while installing requirements.txt #92

harishkhollam999 opened this issue Feb 2, 2021 · 3 comments

Comments

@harishkhollam999
Copy link

Previously it was working but I guess due to some package dependency the error started coming up.
following is the stack trace

pip install -r contrib/tf_serving/requirements.txt
Collecting Keras==2.2.*
Using cached Keras-2.2.5-py2.py3-none-any.whl (336 kB)
Collecting Pillow==5.3.*
Using cached Pillow-5.3.0.tar.gz (15.6 MB)
Collecting tensorflow-serving-api==1.12.*
Using cached tensorflow_serving_api-1.12.3-py2.py3-none-any.whl (39 kB)
Collecting numpy>=1.9.1
Using cached numpy-1.20.0-cp38-cp38-manylinux2010_x86_64.whl (15.4 MB)
Collecting h5py
Using cached h5py-3.1.0-cp38-cp38-manylinux1_x86_64.whl (4.4 MB)
Collecting keras-applications>=1.0.8
Using cached Keras_Applications-1.0.8-py3-none-any.whl (50 kB)
Collecting keras-preprocessing>=1.1.0
Using cached Keras_Preprocessing-1.1.2-py2.py3-none-any.whl (42 kB)
Collecting scipy>=0.14
Using cached scipy-1.6.0-cp38-cp38-manylinux1_x86_64.whl (27.2 MB)
Collecting six>=1.9.0
Using cached six-1.15.0-py2.py3-none-any.whl (10 kB)
Collecting pyyaml
Using cached PyYAML-5.4.1-cp38-cp38-manylinux1_x86_64.whl (662 kB)
Collecting grpcio>=1.0<2
Using cached grpcio-1.35.0-cp38-cp38-manylinux2014_x86_64.whl (4.1 MB)
ERROR: Could not find a version that satisfies the requirement tensorflow<2,>=1.2.0 (from tensorflow-serving-api==1.12.->-r contrib/tf_serving/requirements.txt (line 3)) (from versions: 2.2.0rc1, 2.2.0rc2, 2.2.0rc3, 2.2.0rc4, 2.2.0, 2.2.1, 2.2.2, 2.3.0rc0, 2.3.0rc1, 2.3.0rc2, 2.3.0, 2.3.1, 2.3.2, 2.4.0rc0, 2.4.0rc1, 2.4.0rc2, 2.4.0rc3, 2.4.0rc4, 2.4.0, 2.4.1)
ERROR: No matching distribution found for tensorflow<2,>=1.2.0 (from tensorflow-serving-api==1.12.
->-r contrib/tf_serving/requirements.txt (line 3))

@Anshumank399
Copy link

Facing the same error.

@sanblu
Copy link

sanblu commented Feb 7, 2022

Same error here

@sanblu
Copy link

sanblu commented Feb 7, 2022

In case anyone still has this problem, I got it running like as follows:

  1. Change requirements.txt to add explicit tf version (1.12.x -> 1.12.3)

Keras==2.2.*
Pillow==5.3.*
tensorflow-serving-api==1.12.3

  1. Install old python version 3.6:

sudo add-apt-repository ppa:deadsnakes/ppa
sudo apt-get update
sudo apt-get install python3.6

  1. Start virtual env with 3.6:

virtualenv --python=python3.6 myvenv
source myvenv/bin/activate

  1. Manually install old tensorflow version 1.12.3 (assuming linux x86_64):

export TF_BINARY_URL=https://files.pythonhosted.org/packages/cc/7b/5bdce6b6323b314ce44aa5be7b531ba0e70c50ecd18e91bd1823ff9b539d/tensorflow-1.12.3-cp36-cp36m-manylinux1_x86_64.whl
pip install --ignore-installed --upgrade $TF_BINARY_URL

  1. continue as documented:

pip install -r contrib/tf_serving/requirements.txt

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants