tensorflow: I can't install tensorflow on termux on android

Issue type

Bug

Have you reproduced the bug with TensorFlow Nightly?

Yes

Source

source

TensorFlow version

I even don’t install it

Custom code

Yes

OS platform and distribution

Idk

Mobile device

Redmi 7A android device with 2gb ram and 32gb storage

Python version

I think higher than 3.8 i think 3.11

Bazel version

I can provide you later

GCC/compiler version

I can provide you later

CUDA/cuDNN version

I can provide you later

GPU model and memory

I can provide you later

Current behavior?

I can install tensorflow or tensorflow lite in terms in android plz help me if you need and information just ask me and i provide you the information plz help me

Standalone code to reproduce the issue

pip install tensorflow

Relevant log output

Just ask me and i wil provide you

About this issue

  • Original URL
  • State: closed
  • Created 3 years ago
  • Comments: 29 (4 by maintainers)

Most upvoted comments

What you mean by look into the issus i think no one ever read the issus completely because it is boring and hard to understand a computer issue that’s why i only tell you the no module named tensorflow.compat.v2 as tf error and plz if you help me to install tensorflow in my low end android phone i really got satifies with you i have only one way to install tensorflow on android which is cloning the tensorflow library using git clone but it takes too much time and data and storage because tensorflow is a too big Library also i think it some chances of errors and couldn’t work properly so plz help me to install tensorflow easily or tell me any other way to use keras without tensorflow plz respond me as soon as possible

Ok i will now closing the issus thanks for the help of you thanks

Hi @Noob225566, that previous comment was directed at me 😃.

As I understand it, you want to try to use Keras independent of TensorFlow? because TF is too big for your low end Android device?

keras is now available in multiple backends (that is you can switch the backend to either JAX or Pytorch) now: https://keras.io/. However 2 GB of RAM seems too small even for those alternatives. May I ask if you really want to use Keras on the android? Are you using it as an ML development machine? if so you may have better luck starting with colab: https://colab.sandbox.google.com/. Generally speaking you probably shouldn’t use a mobile/edge device as a development machine but more as an inference device, which is what TF Lite is specialized for. See if you either of those 2 solutions work better for you. If they don’t meet your requirements let us know and we’ll see how we can help.

Hi @Noob225566,

Your Query : Can i also use keras on android with tflite instead of tensorflow. Response: As per my knowledge you can convert your keras model to tflite and can run on android.

Your Query: I can’t install tensorflow in termux

Response: Please let us understand first, whether you want to install tensorflow or tensorflow lite on android. If you are using selected ops in your code then you need to install tensorflow build from source(Refer doc ) or else if you have tflite file, install it from build source(Follow doc) according to your android device.

Please, let us know if it helps you.

Thank You