Facenet: Support for Tensorflow 1.14.0

Created on 10 Jul 2019  路  2Comments  路  Source: davidsandberg/facenet

When trying to install I get this error:

Collecting tensorflow==1.7 (from easyfacenet)
  Could not find a version that satisfies the requirement tensorflow==1.7 (from easyfacenet) (from versions: 1.13.0rc1, 1.13.0rc2, 1.13.1, 1.14.0rc0, 1.14.0rc1, 1.14.0, 2.0.0a0, 2.0.0b0, 2.0.0b1)
No matching distribution found for tensorflow==1.7 (from easyfacenet)

Most helpful comment

Tensorflow v1.7 is not compatible with the most recent release of Python. It only works up to Python 3.6.x

There is a workaround for this by using a virtual environment:

  • install python virturalenv with pip pip install virtualenv (optionally for Win: pip install virtualenvwrapper-win

  • Download an older build of Python (e.g. 3.6.9)

  • Install it in a separate folder (e.g. C:\Python36\
  • get a fresh clone of the of the facenet repository
  • go to your facenet folder
  • change the requirements.txt to install the correct version of scipy: scipy==1.1.0 (see issue #1060)
  • create a new virtual environmnet: virtualenv --python=*insert path to older python version* venv
  • activate it via venv\Scripts\activate
  • install requirements: pip install -r requirements.txt

hope this helps

All 2 comments

pip install tensorflow==1.7.0
Collecting tensorflow==1.7.0
Could not find a version that satisfies the requirement tensorflow==1.7.0 (from versions: 1.13.0rc1, 1.13.0rc2, 1.13.1, 1.13.2, 1.14.0rc0, 1.14.0rc1, 1.14.0, 2.0.0a0, 2.0.0b0, 2.0.0b1)
No matching distribution found for tensorflow==1.7.0

Tensorflow v1.7 is not compatible with the most recent release of Python. It only works up to Python 3.6.x

There is a workaround for this by using a virtual environment:

  • install python virturalenv with pip pip install virtualenv (optionally for Win: pip install virtualenvwrapper-win

  • Download an older build of Python (e.g. 3.6.9)

  • Install it in a separate folder (e.g. C:\Python36\
  • get a fresh clone of the of the facenet repository
  • go to your facenet folder
  • change the requirements.txt to install the correct version of scipy: scipy==1.1.0 (see issue #1060)
  • create a new virtual environmnet: virtualenv --python=*insert path to older python version* venv
  • activate it via venv\Scripts\activate
  • install requirements: pip install -r requirements.txt

hope this helps

Was this page helpful?
0 / 5 - 0 ratings