lhelontra / tensorflow-on-arm

TensorFlow for Arm
MIT License
1.05k stars 274 forks source link

Installing 2.3.0 wheel produces tensorflow._version_=1.14.0 #100

Open chetgnegy opened 4 years ago

chetgnegy commented 4 years ago

I tried to install TF as follows, yet the version installed by python reports as 1.14.0. I'm on RPi 4B.

sudo -H pip3 install tensorflow-2.3.0-cp37-none-linux_armv7l.

>>> python3
>>> import tensorflow
2020-08-12 00:31:36.123293: E tensorflow/core/platform/hadoop/hadoop_file_system.cc:132] HadoopFileSystem load error: libhdfs.so: cannot open shared object file: No such file or directory
>>> import tensorflow
>>> tensorflow.__version__
'1.14.0'

Prior to installing, TF is not importable in python. Any thoughts? I know this sounds crazy.

emojifreak commented 4 years ago

@chetgnegy The official TF document says that pip version must be >= 19,

https://www.tensorflow.org/install/pip?hl=en#1.-install-the-python-development-environment-on-your-system

but Raspberry OS Buster only has pip 18. Maybe

apt-get install python3-pip
pip3 install -U pip
python3 -m pip install https://github.com/lhelontra/tensorflow-on-arm/releases/download/v2.3.0/tensorflow-2.3.0-cp37-none-linux_armv7l.whl

should work.

By the way, installation on aarch64 was much more painful... It requires gfortran to install scipy...