0

I'm trying to run a program in my Raspberry but i can't because it needs at least TensorFlow 2.2.0, while I have TensorFlow 2.0.0 . I tried several times to install TensorFlow 2.2.0 and 2.3.0 . But after install it, it always comes that is 2.0.0 still.

Versions of TensorFlow

Somebody can tell me what happens? Thank you!!

PabloGS
  • 91
  • 9
  • Could you check if you don't have more than one python version installed using the command `py -0` provided here https://stackoverflow.com/questions/53312590/how-can-i-check-all-the-installed-python-versions-on-windows – pratsbhatt Feb 27 '21 at 19:25
  • @PrateekBhatt I can't run that command on the RPI, if I run python -V I get 2.7.16 and if I run python3 -V I get 3.7.3 – PabloGS Feb 28 '21 at 09:37
  • Could you try first uninstalling the tensorflow==2.0.0 and then check if no other version is installed and later install tensorflow==2.2.0. You might have tried it I just want to know the outcome of it. – pratsbhatt Feb 28 '21 at 09:40
  • @PrateekBhatt what I notice is that when I pip3 uninstall tensorflow, it uninstalls the 2.2.0 version but I still can import tensorflow, so the TF that is using when I run a program isnt that, the dependencies that my RPI are using are in another place – PabloGS Feb 28 '21 at 10:20
  • exactly, maybe try pip uninstall tensorflow once and see what comes back? just curious. – pratsbhatt Feb 28 '21 at 10:25
  • @PrateekBhatt Does this make any sense ? https://imgur.com/QbH9l5u – PabloGS Feb 28 '21 at 10:28
  • could you go to the mentioned location in the site-packages and delete the package itself? Also try once with pip3 uninstall tensorflow==2.0.0 – pratsbhatt Feb 28 '21 at 10:30
  • @PrateekBhatt thank u mate!!!! This worked for me https://imgur.com/a/5d3wgiq – PabloGS Feb 28 '21 at 10:44
  • Nice to know. I will just add it as an answer so that it will help others out with an official answer. – pratsbhatt Feb 28 '21 at 13:16

1 Answers1

0

Try to find the package in the /python3.x/site-packages and remove the tensorflow directory using rm.

Then install the needed tensorflow version following the installation instruction found here in the official documentation of tensorflow.

Also attaching the image from the comment of @pablo Gracia S.

pratsbhatt
  • 1,498
  • 10
  • 20