tflite-support icon indicating copy to clipboard operation
tflite-support copied to clipboard

Can not get the latest version of tflite-support

Open homarox opened this issue 1 year ago • 0 comments

Hi,

How can I get the latest of tflite-support?

PS C:\_WorkSpace\_P\pet_classify_book> pip install tflite-support==0.4.4
ERROR: Could not find a version that satisfies the requirement tflite-support==0.4.4 (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.4

PS C:\_WorkSpace\_P\pet_classify_book> py --version Python 3.11.0

If I use the version 3.9, it's get some error.

Error processing line 1 of C:\Users\thle1\AppData\Local\Programs\Python\Python39\lib\site-packages\protobuf-3.20.3-py3.9-nspkg.pth:

  Traceback (most recent call last):
    File "C:\Users\thle1\AppData\Local\Programs\Python\Python39\lib\site.py", line 169, in addpackage
      exec(line)
    File "<string>", line 1, in <module>
    File "C:\Users\thle1\AppData\Local\Programs\Python\Python39\lib\importlib\util.py", line 2, in <module>
      from . import abc
    File "C:\Users\thle1\AppData\Local\Programs\Python\Python39\lib\importlib\abc.py", line 17, in <module>
      from typing import Protocol, runtime_checkable
    File "C:\Users\thle1\AppData\Local\Programs\Python\Python39\lib\typing.py", line 2074, in <module>
      class BinaryIO(IO[bytes]):
    File "C:\Users\thle1\AppData\Local\Programs\Python\Python39\lib\typing.py", line 2080, in BinaryIO
      def write(self, s: Union[bytes, bytearray]) -> int:
    File "C:\Users\thle1\AppData\Local\Programs\Python\Python39\lib\typing.py", line 243, in inner
      return func(*args, **kwds)
    File "C:\Users\thle1\AppData\Local\Programs\Python\Python39\lib\typing.py", line 316, in __getitem__
      return self._getitem(self, parameters)
    File "C:\Users\thle1\AppData\Local\Programs\Python\Python39\lib\typing.py", line 421, in Union
      parameters = _remove_dups_flatten(parameters)
    File "C:\Users\thle1\AppData\Local\Programs\Python\Python39\lib\typing.py", line 215, in _remove_dups_flatten
      all_params = set(tuple(param) for param in params)
    File "C:\Users\thle1\AppData\Local\Programs\Python\Python39\lib\typing.py", line 215, in <genexpr>
      all_params = set(tuple(param) for param in params)
  TypeError: 'type' object is not iterable

I want to use the API image_classifier & writer_utils from tflite_support.metadata_writers import image_classifier, writer_utils

Thanks

homarox avatar Aug 02 '24 08:08 homarox