Comments (12)
@JosiahVillanueva Of course they changed the URL way that tflite_runtime was installed XD Check out https://www.tensorflow.org/lite/guide/python#install_tensorflow_lite_for_python to install tflite_runtime manually via pip3 install --extra-index-url https://google-coral.github.io/py-repo/ tflite_runtime
and in the meantime I'll try to fix our setup.py to either do this for you or not fail on the install and instruct at runtime to follow instructions from Tensorflow.
from lobe-python.
I couldn't get it installed either. I got this error
ERROR: Could not install packages due to an EnvironmentError: [Errno 2] No such file or directory: 'C:\Users\Rachel\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.8_qbz5n2kfra8p0\LocalCache\local-packages\Python38\site-packages\tensorflow\include\external\com_github_grpc_grpc\src\core\ext\filters\client_channel\lb_policy\grpclb\client_load_reporting_filter.h'
As a quick fix, I cloned the whole folder, and copied the src/lobe folder into my working directory where I am running my python script.
from lobe-python.
Hi @rachelc8997 I did your advise I added the src/lobe folder in my working directory but I got a new error regarding "SyntaxError: future feature annotations is not defined"
from lobe-python.
@JosiahVillanueva what version of Python are you using? I believe that error will not happen if you use 3.7 or 3.8
from lobe-python.
No @mbeissinger I am currently using "Python 3.6.8". Is there a way to manually install the repository? Or it was @rachelc8997 suggestion already? P.S. I am using Anaconda
from lobe-python.
I'll look to remove the annotations feature that is causing this issue for 3.6 compatibility -- otherwise, use 3.7 or 3.8
from lobe-python.
Hi @mbeissinger I am quite confused. Where should I remove the annotation feature? I am also new to python.
from lobe-python.
@JosiahVillanueva I just pushed the fix, try installing again
from lobe-python.
Hi @mbeissinger it seems that my company laptop have blocked the site to install lobe-python.
I tried installing it manually using the Setup.py but I stumbled an error like this.
from lobe-python.
Thank you for the help @mbeissinger this will be a great help for me and for others as well if the Setup.py will be fixed. Since I tried to install the tensorflow_lite it shows SSL error that pertains that the site is blocked again in my company machine. You've been a great help :)
from lobe-python.
@JosiahVillanueva Ah ok if you aren't planning on using TFLite, it is optional here anyway. You can modify setup.py to not append to the requirements list. Comment out these lines:
# add it to the requirements, or print the location to find the version to install
if tflite_python and tflite_machine:
requirements.append(f"tflite_runtime @ https://github.com/google-coral/pycoral/releases/download/release-frogfish/tflite_runtime-2.5.0-{tflite_python}-{tflite_machine}.whl")
else:
print(
f"Couldn't find tflite_runtime for your platform {sys.platform}, machine {platform.machine()}, and python version {python_version}, please see the install guide for the right version: https://www.tensorflow.org/lite/guide/python#install_just_the_tensorflow_lite_interpreter"
)
Then you should be able to install and use the API with Tensorflow or ONNX at least
from lobe-python.
Thank you for the help @mbeissinger, your very good.
Solution: Used @mbeissinger advise helped upon commenting out the file 'if tflite_python...' in the Setup.py API worked.
To install the Setup.py manually 'python setup.py install'. Note that you should redirect to the folder where setup.py is located before running the script 'python setup.py install'.
Closing this ticket now
from lobe-python.
Related Issues (18)
- Pip doesn't install tflite-runtime from dependency link
- Tensor Flow bugs
- Package 'libjpeg62-turbo' has no installation candidate on Ubuntu 20.04 HOT 3
- Getting an IndexError from the tflite backend on Raspberry Pi HOT 13
- ERROR: Could not find a version that satisfies the requirement git HOT 3
- Python 3.8 support? HOT 8
- ImportError: cannot import name '_imaging' from 'PIL HOT 2
- Error while predicting result HOT 3
- any support for apple silicon? HOT 4
- Feature Request: Export/Import trained models as Keras HDF5 format HOT 1
- Rasp Pi OS Bullseye has dropped support of PiCamera - breaks Lobe on Rasp Pi
- Error while predicting result HOT 4
- Unsupported on Python 3.10 HOT 2
- Tflite-runtime 2.7.0 can't be installed
- Can not install SDK on Raspberry Pi
- Heatmap is not displayed
- TFLite Backend Raises not supported error
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from lobe-python.