2

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.

AnonyoZarif
  • 344
  • 1
  • 13

1 Answers1

6

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!!!

AnonyoZarif
  • 344
  • 1
  • 13