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

Rpi3 - could not find a version that satisfies the requirement file tflite-support>=0.4.0 #858

Closed
0800robin opened this issue Jul 15, 2022 · 8 comments
Assignees

Comments

@0800robin
Copy link

I am trying to setup an audio classifier on my Raspberry Pi 3 using this example - https://github.com/tensorflow/examples/tree/master/lite/examples/sound_classification/raspberry_pi

I have followed the setup steps, however when i run the setup script i run into this error

Could not find a version that satisfies the requirement tflite-support>=0.4.0 (from -r requirements.txt (line 5)) (from versions: 0.1.0a0.dev3, 0.1.0a0.dev4, 0.1.0a0.dev5, 0.1.0a0, 0.1.0a1)
No matching distribution found for tflite-support>=0.4.0 (from -r requirements.txt (line 5))

I am using python 3.7.3

I have looked into older issues but can't find a resolution
#755

Thanks in advance.

@lu-wang-g
Copy link
Member

@khanhlvg do you mind to take a look at this issue? Many thanks!

@khanhlvg
Copy link
Member

@0800robin Have you tried updating your pip to the latest version?
python3 -m pip install pip --upgrade

then

python3 -m pip install tflite-support==0.4.0

If it doesn't work, could you try python3 -m pip install tflite-support-nightly?

@0800robin
Copy link
Author

Thanks very much @khanhlvg that has solved the issue.

One of the issues was i had mangled my python install a bit but a clean install of raspberry pi OS + updating pip and all is well.

I can now train a model on Teachable Machine and run it on the Pi. Sweet.

Thanks again

@jhabr
Copy link

jhabr commented Jan 16, 2023

@khanhlvg This issues seems to have come back.

pip3 install tflite-support~=0.4.0 was still working perfectly last week (2nd week of January 2023), as per our build server logs:

Collecting tflite-support~=0.4.0
  Downloading tflite_support-0.4.3-cp39-cp39-manylinux2014_x86_64.whl (60.9 MB)

Now I get the same error as mentioned above:

ERROR: Could not find a version that satisfies the requirement tflite-support~=0.4.0 (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.0

Nighly build (tflite-support-nightly) doesn't seem to be working either.

@khanhlvg
Copy link
Member

We didn't do any tflite-support release since Nov 2022 so I suspect that it's caused by your server upgraded to a newer version of Python that tflite-support isn't supported yet.
https://pypi.org/project/tflite-support/0.4.3/#files

Please be noted that we only support Python 3.7 - 3.9 at this moment.

@jhabr
Copy link

jhabr commented Jan 18, 2023

Thank you for your response @khanhlvg! You are right, the python version of the server changed to 3.10.x. I wasn't aware that tflite-support only supports python 3.7 - 3.9, my bad. Got it fixed.

@ABDURRAHMANYIGIT
Copy link

@khanhlvg Hi! My python version is 3.7.4 and pip verison is 22.3.1. But when I run
python -m pip install tflite-support==0.4.0
I still get this error:
ERROR: Could not find a version that satisfies the requirement tflite-support==0.4.0 (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.0
I couldn't find the issue could you help me?

@pedroroutaboul
Copy link

Same Issue here trying with Python 3.7.16

I already tried:

pip install tflite-support-nightly
Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple
ERROR: Could not find a version that satisfies the requirement tflite-support-nightly (from versions: none)
ERROR: No matching distribution found for tflite-support-nightly
pip3 install tflite-support~=0.4.0
Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple
ERROR: Could not find a version that satisfies the requirement tflite-support~=0.4.0 (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.0

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

6 participants