tensorflow: Can't install tflite-model-maker from pip or github

Click to expand!

Issue Type

Bug

Have you reproduced the bug with TF nightly?

Yes

Source

source

Tensorflow Version

2.11

Custom Code

Yes

OS Platform and Distribution

Windows 10 home 19045

Mobile device

No response

Python version

3.10.9

Bazel version

No response

GCC/Compiler version

No response

CUDA/cuDNN version

No response

GPU model and memory

No response

Current Behaviour?

pip install tfl-model-maker tries to install over 500 nightly builds, and then fails when it installs the sixth version of sentencepiece

I tried:

git clone https://github.com/tensorflow/examples
cd examples/tensorflow_examples/lite/model_maker/pip_package
pip install -e .

but this fails with: 
ERROR: Could not find a version that satisfies the requirement tflite-support>=0.4.2 (from tflite-model-maker) (from versions: 0.1.0a0.dev3, 0.1.0a0.dev4, 0.1.0a0.dev5, 0.1.0a0, 0.1.0a1)
ERROR: No matching distribution found for tflite-support>=0.4.2

This is all on a clean anaconda environment - the pip command is the first I've run in it.

There's a copy of the pip output online here: https://1drv.ms/t/s!AjAaK-BVbphXlhwIM_9IpsnL0y8z?e=49lK1J

Standalone code to reproduce the issue

pip install tflite-model-maker

Relevant log output

No response

About this issue

  • Original URL
  • State: open
  • Created a year ago
  • Comments: 15 (3 by maintainers)

Most upvoted comments

Same problem for me, in a google colab notebook

The installation of the tflite-model-maker with the pip command keeps crashing on Google Colab. Either due to requirements not being found, or the disk running out of space. As a result, cannot complete the Flower Classification tutorial.

I had this same issue using python 3.10 so I tried to use 3.8. Then I hit a new issue with the orbax package which was recently renamed.

Creating a new conda environment with python 3.9 successfully installed without issue.

conda create -n object-detection python=3.9
conda activate object-detection
pip install tflite-model-maker

OK, doing that will result in the even worse errors of my first post, because it’ll be python 3.11.2 that gets used. It’ll take an hour or so to fail, and will download hundreds of tf_models_nightly packages with dates at the end of their names. I’ll post back the results shortly.