I'm following this guide to create an AI chatbot which requires Python 3.6, TensorFlow etc. So I installed Python 3.6.8.
To install TensorFlow I tried sudo pip install tensorflow
I also downloaded the .whl file and tried sudo pip install tensorflow-1.14.0-cp36-none-linux_armv7l.whl
I also tried using pip3.6 sudo pip3.6 install tensorflow-1.14.0-cp36-none-linux_armv7l.whl
All of them return the same error.
Loading library to get version: libhdf5.so
error: libhdf5.so: cannot open shared object file: No such file or directory
----------------------------------------
Command "/usr/local/bin/python3.6 -u -c "import setuptools, tokenize;__file__='/ tmp/pip-install-v9ml238y/h5py/setup.py';f=getattr(tokenize, 'open', open)(__file __);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, ' exec'))" install --record /tmp/pip-record-m8i6i3k3/install-record.txt --single-v ersion-externally-managed --compile" failed with error code 1 in /tmp/pip-instal l-v9ml238y/h5py/
Sorry for any mistakes. This is my first post.
1 Answer 1
Okay, I have solved my problem. I reinstalled Python 3.6.
Then I used this command sudo apt-get install libhdf5-dev
and then sudo pip install tensorflow
and installed TensorFlow successfully!
I think the problem was with my Python installation.
Thanks to all of you for your kindness. Cheers!!!
-
Yes, I did complain that GG TF installation was once wrong and misleading. They said your could not use PIP2 for Python 3, and if you did you will get a mess. But they did not said so before hand.tlfong01– tlfong012020年01月06日 12:12:26 +00:00Commented Jan 6, 2020 at 12:12
-
Yes you are right but i used pip3.6AnonyoZarif– AnonyoZarif2020年01月06日 14:58:20 +00:00Commented Jan 6, 2020 at 14:58
-
A long time ago (I can't remember when) I also tried to install TF with pip2 and as usual- it failed.AnonyoZarif– AnonyoZarif2020年01月06日 15:01:50 +00:00Commented Jan 6, 2020 at 15:01
-
1Okay @Ingo doing itAnonyoZarif– AnonyoZarif2020年01月12日 10:28:35 +00:00Commented Jan 12, 2020 at 10:28
Explore related questions
See similar questions with these tags.
sudo apt-get install hdf5 libhdf5-dev
?sudo apt-get install libhdf5-dev
libhdf5-dev
contain dev headers files. The library (.so) itself must be in a packagelibhdf5-X
where X is the version. You can find the lib with :sudo apt-cache search libhd5
for example you can havelibhdf5-100
.library
for storing scientific data