Uncategorized

tensorflow 2.0 install problem

Asked 
Active today
Viewed 21 times
1

I have been trying to install Tensorflow 2.0 on Raspberry Pi 4 (Buster). The documentation here make it seem easy. And indeed it seems to work. However, it installs 1.13.1 (not 2.0). I have successfully installed Tensorflow 2.0 on Ubuntu 18.04 so I think I have some idea of what I’m doing. I am using Python 3.7.4 on my Pi 4.

I have also tried this using my Pi 3 B+ also running Buster. I get the same result.

I started down the rabbit trail of building it from source, but that also failed. I am not particularly interested in building it from scratch. I have not tried building from source on the Pi 3B+.

 New contributor
  • Hi @Doug Park, Ah, let met see. I vaguely remember that I successfully installed TensorFlow some two weeks ago. But I forgot what version was it. You might like to confirm if my version is old. I am happy to try the new version again. raspberrypi.stackexchange.com/questions/103983/…. – tlfong01 6 hours ago    
  • Hi @Doug Park, And there you are, the complete TensorFlow installation record: penzu.com/public/3970e2d0. – tlfong01 6 hours ago   
  • @tifongg01 Thanks, I looked at your output. I had run across that earlier, but I wasn’t experiencing a memory issue so I hadn’t tried that. So I tried setting the memory higher. I still get version 1.13.1. sudo pip3.7 install –upgrade tensorflow …. elided lines…. Successfully installed tensorflow-1.13.1 – Doug Park 4 hours ago
  • I don’t doubt that it worked for you some time ago. It just looks like right now the newer version isn’t available. I’m not particularly savvy with python, and I may be missing something obvious. If I am I would be very happy to have any oversights pointed out. Thanks for your help. I will keep trying. – Doug Park 4 hours ago
  • Thank you for your verification. My apologies for misleading you that I had a successful TF2.0 installation. So it is either an incomplete installation, or another old version 1.13.1. That is disappointing. Indeed I have been following this tensorFlow thing for a couple of years, and I always found that Ubuntu is always perhaps one or two years ahead of Debain/Raspbian. So I need to wait a little bit longer. Please fell free to ask me to try other Rpi TF 2.0 installations. Cheers. – tlfong01 4 hours ago   
  • @tlfong01 Actually, I think your install was OK. I think the issue is that there isn’t a wheel to install for Python 3.7. Or rather there is a wheel but it is for 1.31.1. I don’t understand why your install which starts out as 1.41.1 ends up being 2.0. Thanks for your help! – Doug Park 3 hours ago
  • Thank you for your encouragement. So my last install is not that bad after all. Just now I tried one more time. Still the only error remaining is about the weird thing “h5py”. I am not sure if it is a python program. Did you encounter this “h5hy” error before? – tlfong01 just now   Edit   

0

Question

Installing TensorFlow 2.0 on Rpi4B buster problem. How to fix it?


Answer

Update 2019oct21hkt1544

I install TF2.0 again. Still only error remained is about the h5py.


Errata 209oct21hkt1155

@Doug Park kindly commented that my installation is not 100% successful. There seems to be more teething problems in Rpi TF2.0. I am only a TensorFlow newbie. So I think I better wait for a longer while before resuming.


Yes, I think I successfully installed TF 2.0 some two weeks ago (See errata above). You might like to read my penZu recrod to verify.

/ to continue, …


References

(1) TF2.0 Installation PenZu Record

(2) TF2.0 Installation (Not enough memory) Problem rpi.stackExchange Discussion

(3) TF2.0 Install Record (PenZu Scratch Pad Page) 2019octhkt1540

(4) Installing TensorFlow 2.0 with Pip Instruction Website

/ to continue, …


Appendices

Appendix A – TF2.0 Installation Error Messages – tlfong01 2019oct21hkt1541

a. Running setup.py bdist_wheel for h5py … error

b. error: libhdf5.so: cannot open shared object file: No such file or directory

c. Failed to build h5py

d. Running setup.py install for h5py … error

e. error: libhdf5.so: cannot open shared object file: No such file or directory

/ to continue, …


End of answer

Categories: Uncategorized

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.

%d bloggers like this: